summaryrefslogtreecommitdiffhomepage
path: root/mrbgems/mruby-compiler/core/codegen.c
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2017-03-02 18:14:36 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2017-03-02 18:14:36 +0900
commit1ab7e7e4dce9f53b3d2ed576a6d69d8dbb013166 (patch)
treef19f2d684aeaec553f2555036a67dbbd9cc49ea7 /mrbgems/mruby-compiler/core/codegen.c
parent3390020fd0f60920c743a3f46c526d19fee9021c (diff)
downloadmruby-1ab7e7e4dce9f53b3d2ed576a6d69d8dbb013166.tar.gz
mruby-1ab7e7e4dce9f53b3d2ed576a6d69d8dbb013166.zip
Fixed a bug in register size calculation; fix #3479
Diffstat (limited to 'mrbgems/mruby-compiler/core/codegen.c')
-rw-r--r--mrbgems/mruby-compiler/core/codegen.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/mrbgems/mruby-compiler/core/codegen.c b/mrbgems/mruby-compiler/core/codegen.c
index 37f8201ec..c53abde7f 100644
--- a/mrbgems/mruby-compiler/core/codegen.c
+++ b/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 {