From 0b7d8ac66828b96aadd935b8e15a6ad6a4efd6bd Mon Sep 17 00:00:00 2001 From: Stephan Hadinger Date: Mon, 25 Jul 2022 22:49:58 +0200 Subject: [PATCH] Berry remove unnecessary ref push --- lib/libesp32/berry/src/be_baselib.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/lib/libesp32/berry/src/be_baselib.c b/lib/libesp32/berry/src/be_baselib.c index f556b4ab3..592d74a53 100644 --- a/lib/libesp32/berry/src/be_baselib.c +++ b/lib/libesp32/berry/src/be_baselib.c @@ -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;