diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/array.c | 2 | ||||
| -rw-r--r-- | src/object.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/array.c b/src/array.c index c218162bc..32ee3434e 100644 --- a/src/array.c +++ b/src/array.c @@ -1072,7 +1072,7 @@ mrb_ary_splat(mrb_state *mrb, mrb_value v) if (mrb_nil_p(a)) { return mrb_ary_new_from_values(mrb, 1, &v); } - mrb_array_type(mrb, a); + mrb_ensure_array_type(mrb, a); return a; } diff --git a/src/object.c b/src/object.c index c1ae111aa..a105c62f0 100644 --- a/src/object.c +++ b/src/object.c @@ -607,7 +607,7 @@ mrb_check_string_type(mrb_state *mrb, mrb_value str) } MRB_API mrb_value -mrb_array_type(mrb_state *mrb, mrb_value ary) +mrb_ensure_array_type(mrb_state *mrb, mrb_value ary) { if (!mrb_array_p(ary)) { mrb_raisef(mrb, E_TYPE_ERROR, "%S cannot be converted to Array", |
