diff options
Diffstat (limited to 'array.c')
-rw-r--r-- | array.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -1805,6 +1805,7 @@ rb_ary_slice_bang(int argc, VALUE *argv, VALUE ary) VALUE arg1, arg2; long pos, len, orig_len; + rb_ary_modify_check(ary); if (rb_scan_args(argc, argv, "11", &arg1, &arg2) == 2) { pos = NUM2LONG(arg1); len = NUM2LONG(arg2); |