mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 08:24:58 +00:00
LibC: Make the address argument of malloc_size
a pointer to const
We don't mutate the pointed-to memory, so let's be const correct. Fixes building the `mimalloc` library that's optionally used by the mold linker (note that it isn't enabled yet as I haven't tested it).
This commit is contained in:
parent
9e8c4bb072
commit
c7423dc20b
2 changed files with 2 additions and 2 deletions
|
@ -500,7 +500,7 @@ void* calloc(size_t count, size_t size)
|
|||
return ptr;
|
||||
}
|
||||
|
||||
size_t malloc_size(void* ptr)
|
||||
size_t malloc_size(void const* ptr)
|
||||
{
|
||||
MemoryAuditingSuppressor suppressor;
|
||||
if (!ptr)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue