Permalink
Browse files

Fixed a bug in register size calculation; fix #3479

  • Loading branch information...
matz committed Mar 2, 2017
1 parent 3390020 commit 1ab7e7e4dce9f53b3d2ed576a6d69d8dbb013166
Showing with 2 additions and 0 deletions.
  1. +2 −0 mrbgems/mruby-compiler/core/codegen.c
@@ -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 {

0 comments on commit 1ab7e7e

Please sign in to comment.