summaryrefslogtreecommitdiff
path: root/array.c
diff options
context:
space:
mode:
Diffstat (limited to 'array.c')
-rw-r--r--array.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/array.c b/array.c
index bfaf85e85f..65d4d25c09 100644
--- a/array.c
+++ b/array.c
@@ -517,6 +517,7 @@ ary_shared_first(int argc, VALUE *argv, VALUE ary, int last)
}
else {
result = ary_shared_array(rb_cArray, ary);
+ RARRAY(result)->as.heap.ptr += offset;
RARRAY(result)->as.heap.len = n;
}
return result;