aboutsummaryrefslogtreecommitdiffstats
path: root/array.c
diff options
context:
space:
mode:
Diffstat (limited to 'array.c')
-rw-r--r--array.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/array.c b/array.c
index b309ea044b..058b669a8c 100644
--- a/array.c
+++ b/array.c
@@ -915,7 +915,7 @@ rb_ary_to_ary(obj)
return obj;
}
if (rb_respond_to(obj, rb_intern("to_ary"))) {
- return rb_convert_type(obj, T_ARRAY, "Array", "to_ary");
+ return to_ary(obj);
}
return rb_ary_new3(1, obj);
}