Skip to content

Commit

Permalink
Alias should push() extra stack space for blocks.
Browse files Browse the repository at this point in the history
  • Loading branch information
matz committed Apr 22, 2017
1 parent a1d32af commit 3b0a36d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mrbgems/mruby-compiler/core/codegen.c
Original file line number Diff line number Diff line change
Expand Up @@ -2583,7 +2583,8 @@ codegen(codegen_scope *s, node *tree, int val)
genop(s, MKOP_ABx(OP_LOADSYM, cursp(), b));
push();
genop(s, MKOP_A(OP_LOADNIL, cursp()));
pop_n(3);
push();
pop_n(4);
genop(s, MKOP_ABC(OP_SEND, cursp(), c, 2));
if (val) {
push();
Expand Down

0 comments on commit 3b0a36d

Please sign in to comment.