diff options
Diffstat (limited to 'array.c')
-rw-r--r-- | array.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -456,7 +456,7 @@ rb_ary_new_from_values(long n, const VALUE *elts) ary = rb_ary_new2(n); if (n > 0 && elts) { - assert(!OBJ_PROMOTED(obj)); + assert(!OBJ_PROMOTED(ary)); RARRAY_PTR_USE(ary, ptr, { MEMCPY(ptr, elts, VALUE, n); /* new array is not old gen */ }); |