array.c (mrb_ary_aset): remove unnecessary ary_modify()

The `ary_modify()` is called in subsidiary functions.
This commit is contained in:
Yukihiro "Matz" Matsumoto
2023-02-14 23:45:10 +09:00
parent 4384a87516
commit 235aaafef2
-1
View File
@@ -1030,7 +1030,6 @@ mrb_ary_aset(mrb_state *mrb, mrb_value self)
mrb_value v1, v2, v3;
mrb_int i, len;
ary_modify(mrb, mrb_ary_ptr(self));
if (mrb_get_argc(mrb) == 2) {
const mrb_value *vs = mrb_get_argv(mrb);
v1 = vs[0]; v2 = vs[1];