From 3f8e9d3184bccfd0d75b0498e6c1e21a2c60085a Mon Sep 17 00:00:00 2001 From: Daniel Micay Date: Mon, 3 Jan 2022 00:31:46 -0500 Subject: [PATCH] make MREMAP_MOVE_THRESHOLD into size_t constant This avoids a clang-tidy warning and is a bit cleaner. --- h_malloc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/h_malloc.c b/h_malloc.c index cc953b9..9d092db 100644 --- a/h_malloc.c +++ b/h_malloc.c @@ -27,7 +27,7 @@ #define SLAB_QUARANTINE (SLAB_QUARANTINE_RANDOM_LENGTH > 0 || SLAB_QUARANTINE_QUEUE_LENGTH > 0) #define REGION_QUARANTINE (REGION_QUARANTINE_RANDOM_LENGTH > 0 || REGION_QUARANTINE_QUEUE_LENGTH > 0) -#define MREMAP_MOVE_THRESHOLD (32 * 1024 * 1024) +#define MREMAP_MOVE_THRESHOLD ((size_t)32 * 1024 * 1024) static_assert(sizeof(void *) == 8, "64-bit only");