array.c: forgot to adjust tail position in `mrb_ary_splice`.

parent cd0ffd6f
......@@ -751,6 +751,7 @@ mrb_ary_splice(mrb_state *mrb, mrb_value ary, mrb_int head, mrb_int len, mrb_val
tail = head + len;
if (alen < len || alen < tail) {
len = alen - head;
tail = head + len;
}
/* size check */
......
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