summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--array.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/array.c b/array.c
index 87044a856a..73f55504a8 100644
--- a/array.c
+++ b/array.c
@@ -584,7 +584,7 @@ rb_ary_shift(VALUE ary)
}
else {
if (!FL_TEST(ary, ELTS_SHARED)) {
- RARRAY(ary)->ptr[0] = Qnil;
+ RARRAY_PTR(ary)[0] = Qnil;
}
ary_make_shared(ary);
RARRAY(ary)->as.heap.ptr++; /* shift ptr */