diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2017-03-02 18:14:36 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2017-03-02 18:14:36 +0900 |
| commit | 1ab7e7e4dce9f53b3d2ed576a6d69d8dbb013166 (patch) | |
| tree | f19f2d684aeaec553f2555036a67dbbd9cc49ea7 | |
| parent | 3390020fd0f60920c743a3f46c526d19fee9021c (diff) | |
| download | mruby-1ab7e7e4dce9f53b3d2ed576a6d69d8dbb013166.tar.gz mruby-1ab7e7e4dce9f53b3d2ed576a6d69d8dbb013166.zip | |
Fixed a bug in register size calculation; fix #3479
| -rw-r--r-- | mrbgems/mruby-compiler/core/codegen.c | 2 |
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 { |
