From bfb47068b0a888aa82ad027aadb36828ac396683 Mon Sep 17 00:00:00 2001 From: matz Date: Thu, 18 Mar 2004 06:59:04 +0000 Subject: * 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 --- array.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'array.c') 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); } -- cgit v1.2.3