summaryrefslogtreecommitdiff
path: root/array.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-03-18 06:59:04 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-03-18 06:59:04 +0000
commitbfb47068b0a888aa82ad027aadb36828ac396683 (patch)
tree32915dbe65d750121bbde9fffb148ec19eccd945 /array.c
parentab6963043df202bde77d67dfabff41cc3e7c11c8 (diff)
* eval.c: remove specialized version of rb_Array(). use simple
one defined in object.c. * object.c (Init_Object): remove Kernel#to_a. * enum.c (enum_zip): use "to_a" instead of "to_ary". git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5968 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
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);
}