fix warning with zero padding

This commit is contained in:
Daan Leijen 2023-03-05 22:27:45 -08:00
parent e912697d90
commit 64fb009695

View File

@ -856,7 +856,9 @@ static mi_page_t* mi_find_page(mi_heap_t* heap, size_t size, size_t huge_alignme
} }
else { else {
// otherwise find a page with free blocks in our size segregated queues // otherwise find a page with free blocks in our size segregated queues
mi_assert_internal((ptrdiff_t)size >= MI_PADDING_SIZE); // cast to signed to avoid error if there is no padding #if MI_PADDING
mi_assert_internal(size >= MI_PADDING_SIZE);
#endif
return mi_find_free_page(heap, size); return mi_find_free_page(heap, size);
} }
} }