Skip to content

Commit

Permalink
spicy/runtime-support: Use Vector::unsafeBegin() for args iteration
Browse files Browse the repository at this point in the history
  • Loading branch information
awelzel committed Dec 5, 2023
1 parent 5b1b1c6 commit 8ec69d0
Showing 1 changed file with 2 additions and 1 deletion.
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 8ec69d0

Please sign in to comment.