summaryrefslogtreecommitdiff
path: root/compile.c
diff options
context:
space:
mode:
Diffstat (limited to 'compile.c')
-rw-r--r--compile.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/compile.c b/compile.c
index 5d4ed1b785..92c7611f2e 100644
--- a/compile.c
+++ b/compile.c
@@ -2430,6 +2430,7 @@ setup_arg(rb_iseq_t *iseq, LINK_ANCHOR *args, NODE *node, VALUE *flag)
case NODE_SPLAT: {
COMPILE(args, "args (splat)", argn->nd_head);
argc = INT2FIX(1);
+ nsplat++;
*flag |= VM_CALL_ARGS_SPLAT_BIT;
break;
}