Skip to content

Commit

Permalink
Merge pull request #278 from s-hadinger/move_unnecessary_ref
Browse files Browse the repository at this point in the history
Remove unnecessary reference in call()
  • Loading branch information
skiars authored Jul 27, 2022
2 parents cb15a0c + 0d6de91 commit 1f27b2a
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/be_baselib.c
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,6 @@ static int l_call(bvm *vm)
be_moveto(vm, top + 1, top + 1 + list_size);
be_moveto(vm, top, top + list_size);

be_refpush(vm, -2);
be_pushiter(vm, -1);
while (be_iter_hasnext(vm, -2)) {
be_iter_next(vm, -2);
Expand All @@ -342,7 +341,6 @@ static int l_call(bvm *vm)
be_pop(vm, 1);
}
be_pop(vm, 1); /* remove iterator */
be_refpop(vm);
}
be_pop(vm, 2);
arg_count = arg_count - 1 + list_size;
Expand Down

0 comments on commit 1f27b2a

Please sign in to comment.