array.c (mrb_ary_delete): array index should be mrb_int

This commit is contained in:
Yukihiro "Matz" Matsumoto
2024-09-17 12:07:39 +09:00
parent ba8ee7b895
commit d1d010a03a
+2 -2
View File
@@ -1550,8 +1550,8 @@ mrb_ary_delete(mrb_state *mrb, mrb_value self)
struct RArray *ary = RARRAY(self);
mrb_value ret = obj;
int ai = mrb_gc_arena_save(mrb);
size_t i = 0;
size_t j = 0;
mrb_int i = 0;
mrb_int j = 0;
for (; i < ARY_LEN(ary); i++) {
mrb_value elem = ARY_PTR(ary)[i];