diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2018-09-06 14:40:21 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2018-09-06 14:40:21 +0900 |
| commit | 4cd4c64266e7d9075b09e66c4f7b3546a76120f4 (patch) | |
| tree | 210426ae3d7d3a4323b52916e52bf0f10c920a50 | |
| parent | a170c1dd7072120ba2c2cae8e1ed23bdd4b7b532 (diff) | |
| download | mruby-4cd4c64266e7d9075b09e66c4f7b3546a76120f4.tar.gz mruby-4cd4c64266e7d9075b09e66c4f7b3546a76120f4.zip | |
Need to support multiple `**` splats in argument list; fix #4106
| -rw-r--r-- | mrbgems/mruby-compiler/core/codegen.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mrbgems/mruby-compiler/core/codegen.c b/mrbgems/mruby-compiler/core/codegen.c index 98b215f6b..8be9a8ebe 100644 --- a/mrbgems/mruby-compiler/core/codegen.c +++ b/mrbgems/mruby-compiler/core/codegen.c @@ -1786,7 +1786,7 @@ codegen(codegen_scope *s, node *tree, int val) push(); } codegen(s, tree->car->cdr, VAL); - if (len > 0) { + if (len > 0 || update) { pop(); pop(); genop_1(s, OP_HASHCAT, cursp()); push(); |
