Merge pull request #16081 from s-hadinger/berry_fix_ref_call

Berry remove unnecessary ref push
This commit is contained in:
s-hadinger 2022-07-25 23:14:49 +02:00 committed by GitHub
commit cc5fb02653
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 2 deletions

View File

@ -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);
@ -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;