Skip to content

Commit

Permalink
[Core] Compensate for OSes that don't return 64b aligned memory from …
Browse files Browse the repository at this point in the history
…malloc
  • Loading branch information
nicbarker committed Jan 29, 2025
1 parent 1bcf256 commit 5fae7a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clay.h
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 5fae7a6

Please sign in to comment.