mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
push only after OP_GETCONST in VAL mode; ref #2769
This commit is contained in:
@@ -1942,7 +1942,9 @@ codegen(codegen_scope *s, node *tree, int val)
|
||||
int sym = new_sym(s, sym(tree));
|
||||
|
||||
genop(s, MKOP_ABx(OP_GETCONST, cursp(), sym));
|
||||
push();
|
||||
if (val) {
|
||||
push();
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user