mirror of
https://github.com/microsoft/mimalloc.git
synced 2025-05-05 23:19:31 +03:00
fix warning with zero padding
This commit is contained in:
parent
b3f3a0de3b
commit
e912697d90
1 changed files with 1 additions and 1 deletions
|
@ -856,7 +856,7 @@ 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(size >= MI_PADDING_SIZE);
|
mi_assert_internal((ptrdiff_t)size >= MI_PADDING_SIZE); // cast to signed to avoid error if there is no padding
|
||||||
return mi_find_free_page(heap, size);
|
return mi_find_free_page(heap, size);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue