From 74e5af47662d2e47a1658205e3d1609d4d7907a3 Mon Sep 17 00:00:00 2001 From: Zhihua Lai Date: Sat, 31 Aug 2024 20:54:15 +0100 Subject: [PATCH] Fix --- src/heap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/heap.c b/src/heap.c index 58f006e3..38f24efe 100644 --- a/src/heap.c +++ b/src/heap.c @@ -59,7 +59,7 @@ static bool mi_heap_page_is_valid(mi_heap_t* heap, mi_page_queue_t* pq, mi_page_ MI_UNUSED(pq); mi_assert_internal(mi_page_heap(page) == heap); mi_segment_t* segment = _mi_page_segment(page); - uintptr_t thread_id = __atomic_load_n(&segment->thread_id, __ATOMIC_RELAXED); + mi_threadid_t thread_id = atomic_load(&segment->thread_id); mi_assert_internal(thread_id == heap->thread_id); mi_assert_expensive(_mi_page_is_valid(page)); return true;