From d0fa578cdcb041ec3e42d8bcba0bfcf9984def6d Mon Sep 17 00:00:00 2001 From: nobu Date: Sat, 27 Jan 2018 09:27:47 +0000 Subject: array.c: rb_check_to_array * array.c (rb_check_to_array): conversion to array by to_a method. returns nil if not possible. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62072 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- object.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'object.c') diff --git a/object.c b/object.c index 48c97b6f36..05502833e5 100644 --- a/object.c +++ b/object.c @@ -3595,7 +3595,7 @@ rb_Array(VALUE val) VALUE tmp = rb_check_array_type(val); if (NIL_P(tmp)) { - tmp = rb_check_convert_type_with_id(val, T_ARRAY, "Array", idTo_a); + tmp = rb_check_to_array(val); if (NIL_P(tmp)) { return rb_ary_new3(1, val); } -- cgit v1.2.3