summaryrefslogtreecommitdiffstats
path: root/eval.c
diff options
context:
space:
mode:
Diffstat (limited to 'eval.c')
-rw-r--r--eval.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/eval.c b/eval.c
index 9ce0f1c49..9240f3850 100644
--- a/eval.c
+++ b/eval.c
@@ -2299,7 +2299,7 @@ splat_value(v)
}
}
#endif
- return avalue_splat(rb_Array(v));
+ return rb_Array(v);
}
static VALUE
@@ -2686,7 +2686,7 @@ rb_eval(self, n)
break;
case NODE_SPLAT:
- result = splat_value(rb_eval(self, node->nd_head));
+ result = avalue_splat(splat_value(rb_eval(self, node->nd_head)));
break;
case NODE_SVALUE: