From fc1a29180beadab67535a62b3b1dff98c8c5992c Mon Sep 17 00:00:00 2001 From: Daan Date: Wed, 21 May 2025 16:33:16 -0700 Subject: [PATCH] fix api test for 32-bits --- test/test-api.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/test-api.c b/test/test-api.c index 9aa84b61..fa8fc3cd 100644 --- a/test/test-api.c +++ b/test/test-api.c @@ -89,9 +89,11 @@ int main(void) { CHECK_BODY("malloc-free-null") { mi_free(NULL); }; + #if MI_INTPTR_BITS > 32 CHECK_BODY("malloc-free-invalid-low") { mi_free((void*)(MI_ZU(0x0000000003990080))); // issue #1087 }; + #endif CHECK_BODY("calloc-overflow") { // use (size_t)&mi_calloc to get some number without triggering compiler warnings result = (mi_calloc((size_t)&mi_calloc,SIZE_MAX/1000) == NULL);