mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
array.c (mrb_ary_delete): array index should be mrb_int
This commit is contained in:
+2
-2
@@ -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];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user