Fixed a bug in register size calculation; fix #3479
authorYukihiro "Matz" Matsumoto <[email protected]>
Thu, 2 Mar 2017 09:14:36 +0000 (2 18:14 +0900)
committerYukihiro "Matz" Matsumoto <[email protected]>
Thu, 2 Mar 2017 09:14:36 +0000 (2 18:14 +0900)
mrbgems/mruby-compiler/core/codegen.c

index 37f8201..c53abde 100644 (file)
@@ -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 {