summaryrefslogtreecommitdiff
path: root/array.c
diff options
context:
space:
mode:
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;