mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Array#reverse! should call ary_modify
This commit is contained in:
@@ -368,6 +368,7 @@ mrb_ary_reverse_bang(mrb_state *mrb, mrb_value self)
|
||||
if (a->len > 1) {
|
||||
mrb_value *p1, *p2;
|
||||
|
||||
ary_modify(mrb, *a);
|
||||
p1 = a->ptr;
|
||||
p2 = a->ptr + a->len - 1;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user