Skip to content

Commit 2d94df8

Browse files
committed
fix potentially warning on gcc (pr #935)
1 parent 9f70ce5 commit 2d94df8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/heap.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ static bool mi_heap_page_is_valid(mi_heap_t* heap, mi_page_queue_t* pq, mi_page_
5959
MI_UNUSED(pq);
6060
mi_assert_internal(mi_page_heap(page) == heap);
6161
mi_segment_t* segment = _mi_page_segment(page);
62-
mi_assert_internal(segment->thread_id == heap->thread_id);
62+
mi_assert_internal(mi_atomic_load_relaxed(&segment->thread_id) == heap->thread_id);
6363
mi_assert_expensive(_mi_page_is_valid(page));
6464
return true;
6565
}

0 commit comments

Comments
 (0)