From 57c88efccb83d9c8821296294f86dd51cc5c7cae Mon Sep 17 00:00:00 2001 From: Neil Monday Date: Tue, 17 Dec 2024 06:37:44 -0500 Subject: [PATCH] The _msize function has a non-const void* parameter in the msvc CRT. (#708) Co-authored-by: Neil Monday --- src/snmalloc/override/malloc.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/snmalloc/override/malloc.cc b/src/snmalloc/override/malloc.cc index cbef9428c..4f87a130e 100644 --- a/src/snmalloc/override/malloc.cc +++ b/src/snmalloc/override/malloc.cc @@ -42,7 +42,7 @@ extern "C" #ifdef _WIN32 SNMALLOC_EXPORT - size_t SNMALLOC_NAME_MANGLE(_msize)(MALLOC_USABLE_SIZE_QUALIFIER void* ptr) + size_t SNMALLOC_NAME_MANGLE(_msize)(void* ptr) { return snmalloc::libc::malloc_usable_size(ptr); }