mirror of
https://github.com/nicbarker/clay.git
synced 2025-09-18 04:26:18 +00:00
[Core] Compensate for OSes that don't return 64b aligned memory from malloc
This commit is contained in:
parent
1bcf256e4d
commit
5fae7a6249
2
clay.h
2
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")
|
||||
|
|
Loading…
Reference in a new issue