mirror of
https://github.com/microsoft/mimalloc.git
synced 2024-12-25 20:14:12 +08:00
fix build warning on 32-bit musl
This commit is contained in:
parent
e3fea8f4e1
commit
aa91fe0f1c
@ -175,7 +175,9 @@ static void* mi_arena_meta_zalloc(size_t size, mi_memid_t* memid, mi_stats_t* st
|
||||
|
||||
// try static
|
||||
void* p = NULL;
|
||||
#if !(MI_INTPTR_SIZE==4 && MI_LIBC_MUSL) // fix 32-bit musl compilation, issue #895
|
||||
#if (MI_INTPTR_SIZE==4 && MI_LIBC_MUSL) // fix 32-bit musl compilation, issue #895
|
||||
MI_UNUSED(mi_arena_static_zalloc);
|
||||
#else
|
||||
p = mi_arena_static_zalloc(size, MI_MAX_ALIGN_SIZE, memid);
|
||||
#endif
|
||||
if (p != NULL) return p;
|
||||
|
Loading…
x
Reference in New Issue
Block a user