summaryrefslogtreecommitdiff
path: root/enumerator.c
diff options
context:
space:
mode:
Diffstat (limited to 'enumerator.c')
-rw-r--r--enumerator.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/enumerator.c b/enumerator.c
index 4446eb45e8..94e32dfb24 100644
--- a/enumerator.c
+++ b/enumerator.c
@@ -27,7 +27,7 @@ static VALUE
proc_call(VALUE proc, VALUE args)
{
if (TYPE(args) != T_ARRAY) {
- args = rb_values_new(1, args);
+ args = rb_ary_new3(1, args);
}
return rb_proc_call(proc, args);
}