push only after OP_GETCONST in VAL mode; ref #2769

This commit is contained in:
cremno
2015-06-02 07:57:27 +02:00
parent 2f635f56cb
commit b721d449e6
+3 -1
View File
@@ -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;