mirror of
https://github.com/microsoft/mimalloc.git
synced 2025-05-05 23:19:31 +03:00
Fix 'malloc-nomem1' test for 32-bit architectures
This commit is contained in:
parent
076f815cec
commit
edb0b93c6f
1 changed files with 1 additions and 1 deletions
|
@ -83,7 +83,7 @@ int main() {
|
||||||
void* p = mi_malloc(0); mi_free(p);
|
void* p = mi_malloc(0); mi_free(p);
|
||||||
});
|
});
|
||||||
CHECK_BODY("malloc-nomem1",{
|
CHECK_BODY("malloc-nomem1",{
|
||||||
result = (mi_malloc(SIZE_MAX/2) == NULL);
|
result = (mi_malloc((size_t)PTRDIFF_MAX + (size_t)1) == NULL);
|
||||||
});
|
});
|
||||||
CHECK_BODY("malloc-null",{
|
CHECK_BODY("malloc-null",{
|
||||||
mi_free(NULL);
|
mi_free(NULL);
|
||||||
|
|
Loading…
Add table
Reference in a new issue