Permalink
Browse files

Merge pull request #676 from skandhas/for-675

fix correct stack postion for headless case
  • Loading branch information...
2 parents 9d56acb + 320a931 commit d7b762ae2bf6e9d931cbc79afd0a000074fc886a @matz matz 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 d7b762a

Please sign in to comment.