summaryrefslogtreecommitdiffstats
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
commita36febf2153bfe3d3c8c636e5e32805e5310f090 (patch)
tree32915dbe65d750121bbde9fffb148ec19eccd945 /array.c
parentaf61503709667cb380084f48f22c8855d13fcc19 (diff)
downloadruby-a36febf2153bfe3d3c8c636e5e32805e5310f090.tar.gz
ruby-a36febf2153bfe3d3c8c636e5e32805e5310f090.tar.xz
ruby-a36febf2153bfe3d3c8c636e5e32805e5310f090.zip
* 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: http://svn.ruby-lang.org/repos/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 b309ea044..058b669a8 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);
}