mirror of
				https://github.com/nicbarker/clay.git
				synced 2025-11-04 08:36:17 +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__Context_Allocate_Arena(&fakeContext.internalArena);
 | 
				
			||||||
    Clay__InitializePersistentMemory(&fakeContext);
 | 
					    Clay__InitializePersistentMemory(&fakeContext);
 | 
				
			||||||
    Clay__InitializeEphemeralMemory(&fakeContext);
 | 
					    Clay__InitializeEphemeralMemory(&fakeContext);
 | 
				
			||||||
    return fakeContext.internalArena.nextAllocation;
 | 
					    return fakeContext.internalArena.nextAllocation + 128;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
CLAY_WASM_EXPORT("Clay_CreateArenaWithCapacityAndMemory")
 | 
					CLAY_WASM_EXPORT("Clay_CreateArenaWithCapacityAndMemory")
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue