mirror of
https://github.com/microsoft/mimalloc.git
synced 2024-12-26 21:04:27 +08:00
fix warning with zero padding
This commit is contained in:
parent
e912697d90
commit
64fb009695
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user