Fixed a bug in the OP_JMPNOT optimization (13eaff4); fix #4644

This commit is contained in:
Yukihiro "Matz" Matsumoto
2019-08-20 07:19:43 +09:00
parent 942c076938
commit 183fb961b3
+1 -1
View File
@@ -1578,7 +1578,7 @@ codegen(codegen_scope *s, node *tree, int val)
}
codegen(s, tree->car, VAL);
pop();
if (tree->cdr->car) {
if (val || tree->cdr->car) {
pos1 = genjmp2(s, OP_JMPNOT, cursp(), 0, val);
codegen(s, tree->cdr->car, val);
if (elsepart) {