diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-03-18 06:59:04 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-03-18 06:59:04 +0000 |
commit | bfb47068b0a888aa82ad027aadb36828ac396683 (patch) | |
tree | 32915dbe65d750121bbde9fffb148ec19eccd945 /array.c | |
parent | ab6963043df202bde77d67dfabff41cc3e7c11c8 (diff) | |
download | ruby-bfb47068b0a888aa82ad027aadb36828ac396683.tar.gz |
* 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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); } |