summaryrefslogtreecommitdiff
path: root/array.c
diff options
context:
space:
mode:
author卜部昌平 <shyouhei@ruby-lang.org>2020-02-25 12:42:00 +0900
committer卜部昌平 <shyouhei@ruby-lang.org>2020-03-04 12:30:42 +0900
commit2325017477e0ee9f557b07a73f187a83ae5036a4 (patch)
tree9b4f77eb56336a171ef8aaabb995a1e51c338135 /array.c
parent97fa6468dc3b2e8be4a95caebbad54d5ddacec86 (diff)
fix compile error w/ -DUSE_TRANSIENT_HEAP=0
rb_transient_heap_managed_ptr_p is available only when USE_TRANSIENT_HEAP. Need #if guards.
Diffstat (limited to 'array.c')
-rw-r--r--array.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/array.c b/array.c
index d5650cfeed..0686eeca81 100644
--- a/array.c
+++ b/array.c
@@ -216,9 +216,11 @@ ary_verify_(VALUE ary, const char *file, int line)
#endif
}
+#if USE_TRANSIENT_HEAP
if (RARRAY_TRANSIENT_P(ary)) {
assert(rb_transient_heap_managed_ptr_p(RARRAY_CONST_PTR_TRANSIENT(ary)));
}
+#endif
rb_transient_heap_verify();