From 5fae7a6249f986d11307504b5bdc2bd1f6481b8f Mon Sep 17 00:00:00 2001 From: Nic Barker Date: Wed, 29 Jan 2025 21:16:24 +1300 Subject: [PATCH] [Core] Compensate for OSes that don't return 64b aligned memory from malloc --- clay.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clay.h b/clay.h index b82a513..b7d7ae5 100644 --- a/clay.h +++ b/clay.h @@ -3066,7 +3066,7 @@ uint32_t Clay_MinMemorySize(void) { Clay__Context_Allocate_Arena(&fakeContext.internalArena); Clay__InitializePersistentMemory(&fakeContext); Clay__InitializeEphemeralMemory(&fakeContext); - return fakeContext.internalArena.nextAllocation; + return fakeContext.internalArena.nextAllocation + 128; } CLAY_WASM_EXPORT("Clay_CreateArenaWithCapacityAndMemory")