Skip to content

Commit

Permalink
Fixed a bug in register size calculation; fix #3479
Browse files Browse the repository at this point in the history
  • Loading branch information
matz committed Mar 2, 2017
1 parent 3390020 commit 1ab7e7e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mrbgems/mruby-compiler/core/codegen.c
Original file line number Diff line number Diff line change
Expand Up @@ -1814,6 +1814,8 @@ codegen(codegen_scope *s, node *tree, int val)
for (i=0; i<nargs; i++) {
genop(s, MKOP_AB(OP_MOVE, cursp()+i+1, base+i+1));
}
push_n(nargs+1);
pop_n(nargs+1);
callargs = nargs;
}
else {
Expand Down

0 comments on commit 1ab7e7e

Please sign in to comment.