Skip to content

Commit

Permalink
fix potentially warning on gcc (pr #935)
Browse files Browse the repository at this point in the history
  • Loading branch information
daanx committed Dec 30, 2024
1 parent 9f70ce5 commit 2d94df8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/heap.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
mi_assert_internal(segment->thread_id == heap->thread_id);
mi_assert_internal(mi_atomic_load_relaxed(&segment->thread_id) == heap->thread_id);
mi_assert_expensive(_mi_page_is_valid(page));
return true;
}
Expand Down

0 comments on commit 2d94df8

Please sign in to comment.