diff options
Diffstat (limited to 'transient_heap.c')
-rw-r--r-- | transient_heap.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/transient_heap.c b/transient_heap.c index ba6f87aa69..ddf40d1041 100644 --- a/transient_heap.c +++ b/transient_heap.c @@ -9,6 +9,7 @@ #include "debug_counter.h" #include "gc.h" #include "internal.h" +#include "internal/array.h" #include "internal/gc.h" #include "internal/hash.h" #include "internal/sanitizers.h" @@ -592,7 +593,7 @@ transient_heap_ptr(VALUE obj, int error) switch (BUILTIN_TYPE(obj)) { case T_ARRAY: if (RARRAY_TRANSIENT_P(obj)) { - TH_ASSERT(!FL_TEST_RAW(obj, RARRAY_EMBED_FLAG)); + TH_ASSERT(!ARY_EMBED_P(obj)); ptr = RARRAY(obj)->as.heap.ptr; } break; |