Commit 2edee29e authored by Yukihiro Matsumoto's avatar Yukihiro Matsumoto

Array#reverse! should call ary_modify

parent 7ccc6fa2
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment