aboutsummaryrefslogtreecommitdiffstats
path: root/array.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-08-29 12:13:37 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-08-29 12:13:37 +0000
commitfdcdd97b3df1949a72f850cc016b4cd9174e5c29 (patch)
treef8c4c497b099ff7f863b81b626faf9782edf6ee2 /array.c
parent9f722517fd0972cb2bb6bd7695a03809165a0496 (diff)
downloadruby-fdcdd97b3df1949a72f850cc016b4cd9174e5c29.tar.gz
array.c: use rb_check_array_type
* array.c (ary_join_1): simplified by rb_check_array_type. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59688 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 0700a03193..5a3a49f1ea 100644
--- a/array.c
+++ b/array.c
@@ -2022,7 +2022,7 @@ ary_join_1(VALUE obj, VALUE ary, VALUE sep, long i, VALUE result, int *first)
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;