mirror of
https://github.com/microsoft/mimalloc.git
synced 2025-07-06 11:34:38 +03:00
fix assertion in mi_block_zero_init (issue #194)
This commit is contained in:
parent
dc58388968
commit
41e717c2e0
2 changed files with 5 additions and 2 deletions
|
@ -92,6 +92,9 @@ int main() {
|
|||
// use (size_t)&mi_calloc to get some number without triggering compiler warnings
|
||||
result = (mi_calloc((size_t)&mi_calloc,SIZE_MAX/1000) == NULL);
|
||||
});
|
||||
CHECK_BODY("calloc0",{
|
||||
result = (mi_usable_size(mi_calloc(0,1000)) >= 0);
|
||||
});
|
||||
|
||||
// ---------------------------------------------------
|
||||
// Extended
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue