summaryrefslogtreecommitdiff
path: root/array.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-08-29 12:13:37 (GMT)
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-08-29 12:13:37 (GMT)
commit4b9aeef1fa2f32a4555f88c6e83539374a1bd8d1 (patch)
treef8c4c497b099ff7f863b81b626faf9782edf6ee2 /array.c
parentf32e46b791790f0d110763523c7ae773781487db (diff)
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 0700a03..5a3a49f 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;