diff options
author | Daan <daanl@outlook.com> | 2021-10-19 12:55:10 -0700 |
---|---|---|
committer | Daan <daanl@outlook.com> | 2021-10-19 12:55:10 -0700 |
commit | aeb73b0cd4562143ed41c8f368bf0984a0897b06 (patch) | |
tree | 0f851adb2781db6df6a9e5fb1ad83edd1d97143d /test | |
parent | f945dbb390685b7b3c9bfd836ff3358c5c91ed41 (diff) | |
parent | 9a724889ead0ab9ad04f66b91b3e22064ccd8d52 (diff) |
merge from dev
Diffstat (limited to 'test')
-rw-r--r-- | test/test-api.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/test-api.c b/test/test-api.c index 53e7f3d..55c8043 100644 --- a/test/test-api.c +++ b/test/test-api.c @@ -83,7 +83,7 @@ int main(void) { void* p = mi_malloc(0); mi_free(p); }); 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",{ mi_free(NULL); |