Permalink
Browse files

fix correct stack postion for headless case

  • Loading branch information...
1 parent 9d56acb commit 320a931965796dbc2892f34ebc36e71db5126e57 @skandhas skandhas committed Dec 28, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/codegen.c
View
@@ -1205,7 +1205,9 @@ codegen(codegen_scope *s, node *tree, int val)
pop();
genop(s, MKOP_ABC(OP_SEND, cursp(), new_msym(s, mrb_intern(s->mrb, "===")), 1));
}
- pop();
+ else
+ pop();
+
tmp = new_label(s);
genop(s, MKOP_AsBx(OP_JMPIF, cursp(), pos2));
pos2 = tmp;

0 comments on commit 320a931

Please sign in to comment.