mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
array.c: forgot to adjust tail position in mrb_ary_splice.
This commit is contained in:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user