diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-08-29 12:13:37 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-08-29 12:13:37 +0000 |
commit | 4b9aeef1fa2f32a4555f88c6e83539374a1bd8d1 (patch) | |
tree | f8c4c497b099ff7f863b81b626faf9782edf6ee2 /array.c | |
parent | f32e46b791790f0d110763523c7ae773781487db (diff) | |
download | ruby-4b9aeef1fa2f32a4555f88c6e83539374a1bd8d1.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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |