Skip to content

Commit

Permalink
The _msize function has a non-const void* parameter in the msvc CRT. (#…
Browse files Browse the repository at this point in the history
…708)

Co-authored-by: Neil Monday <[email protected]>
  • Loading branch information
NeilMonday and Neil Monday authored Dec 17, 2024
1 parent cbc3018 commit 57c88ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/snmalloc/override/malloc.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 57c88ef

Please sign in to comment.