summaryrefslogtreecommitdiffhomepage
path: root/mrbgems
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2018-09-06 14:40:21 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2018-09-06 14:40:21 +0900
commit4cd4c64266e7d9075b09e66c4f7b3546a76120f4 (patch)
tree210426ae3d7d3a4323b52916e52bf0f10c920a50 /mrbgems
parenta170c1dd7072120ba2c2cae8e1ed23bdd4b7b532 (diff)
downloadmruby-4cd4c64266e7d9075b09e66c4f7b3546a76120f4.tar.gz
mruby-4cd4c64266e7d9075b09e66c4f7b3546a76120f4.zip
Need to support multiple `**` splats in argument list; fix #4106
Diffstat (limited to 'mrbgems')
-rw-r--r--mrbgems/mruby-compiler/core/codegen.c2
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();