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

This commit is contained in:
Yukihiro "Matz" Matsumoto
2021-09-10 17:34:40 +09:00
parent cd0ffd6f1c
commit da749d870f
+1
View File
@@ -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 */