Merge pull request #1612 from h2so5/node-case

fix codegen bug in NODE_CASE
This commit is contained in:
Yukihiro "Matz" Matsumoto
2013-12-19 06:05:49 -08:00
+4 -1
View File
@@ -1409,10 +1409,13 @@ codegen(codegen_scope *s, node *tree, int val)
tree = tree->cdr;
}
if (val) {
int pos = cursp();
genop(s, MKOP_A(OP_LOADNIL, cursp()));
if (pos3) dispatch_linked(s, pos3);
pop();
genop(s, MKOP_AB(OP_MOVE, cursp(), pos));
push();
}
if (pos3) dispatch_linked(s, pos3);
}
break;