use more lightweight mrb_funcall_argv instead of mrb_funcall_id

This commit is contained in:
Yukihiro "Matz" Matsumoto
2023-06-11 23:21:49 +09:00
parent 39a29a7de1
commit 89f7bb1056
12 changed files with 20 additions and 20 deletions
+1 -1
View File
@@ -1176,7 +1176,7 @@ mrb_ary_splat(mrb_state *mrb, mrb_value v)
return mrb_ary_new_from_values(mrb, 1, &v);
}
ary = mrb_funcall_id(mrb, v, MRB_SYM(to_a), 0);
ary = mrb_funcall_argv(mrb, v, MRB_SYM(to_a), 0, NULL);
if (mrb_nil_p(ary)) {
return mrb_ary_new_from_values(mrb, 1, &v);
}