array.c: call mrb_ary_delete_at() directly from Array#slice!.

Avoid `mrb_funcall()`.
This commit is contained in:
Yukihiro "Matz" Matsumoto
2022-02-26 14:19:05 +09:00
parent b118ba9fb3
commit 5305c5c84d
2 changed files with 6 additions and 12 deletions
+1 -1
View File
@@ -1009,7 +1009,7 @@ mrb_ary_aset(mrb_state *mrb, mrb_value self)
return v3;
}
static mrb_value
mrb_value
mrb_ary_delete_at(mrb_state *mrb, mrb_value self)
{
struct RArray *a = mrb_ary_ptr(self);