Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/topic/awelzel/spicy-rt-raise-eve…
Browse files Browse the repository at this point in the history
…nt-vector-unsafe'

* origin/topic/awelzel/spicy-rt-raise-event-vector-unsafe:
  spicy/runtime-support: Use Vector::unsafeBegin() for args iteration
  Bump spicy submodule
  • Loading branch information
awelzel committed Dec 6, 2023
2 parents f39f1b0 + 8ec69d0 commit d1e7c8b
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 3 deletions.
6 changes: 6 additions & 0 deletions CHANGES
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
6.2.0-dev.241 | 2023-12-06 11:41:29 +0100

* spicy/runtime-support: Use Vector::unsafeBegin() for args iteration (Arne Welzel, Corelight)

* Bump spicy submodule (Arne Welzel, Corelight)

6.2.0-dev.238 | 2023-12-05 16:00:56 +0100

* SegmentProfiler: Do not initialize initial_rusage (Arne Welzel, Corelight)
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
6.2.0-dev.238
6.2.0-dev.241
3 changes: 2 additions & 1 deletion src/spicy/runtime-support.cc
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,8 @@ void rt::raise_event(const EventHandlerPtr& handler, const hilti::rt::Vector<Val

Args vl = Args();
vl.reserve(args.size());
for ( const auto& v : args ) {
for ( auto it = args.unsafeBegin(); it != args.unsafeEnd(); it++ ) {
const auto& v = *it;
if ( v )
vl.emplace_back(v);
else
Expand Down

0 comments on commit d1e7c8b

Please sign in to comment.