ruby-changes:47572
From: nobu <ko1@a...>
Date: Tue, 29 Aug 2017 21:13:42 +0900 (JST)
Subject: [ruby-changes:47572] nobu:r59688 (trunk): array.c: use rb_check_array_type
nobu 2017-08-29 21:13:37 +0900 (Tue, 29 Aug 2017) New Revision: 59688 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=59688 Log: array.c: use rb_check_array_type * array.c (ary_join_1): simplified by rb_check_array_type. Modified files: trunk/array.c Index: array.c =================================================================== --- array.c (revision 59687) +++ array.c (revision 59688) @@ -2022,7 +2022,7 @@ ary_join_1(VALUE obj, VALUE ary, VALUE s https://github.com/ruby/ruby/blob/trunk/array.c#L2022 val = tmp; goto str_join; } - tmp = rb_check_convert_type_with_id(val, T_ARRAY, "Array", idTo_ary); + tmp = rb_check_array_type(val); if (!NIL_P(tmp)) { obj = val; val = tmp; -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/