mirror of
https://github.com/w23/xash3d-fwgs
synced 2025-01-05 16:35:56 +01:00
engine: common: zone: make Mem_Alloc return aligned addresses on ILP32, thanks Xav101 on Discord for heads up
This commit is contained in:
parent
2f5e3b0aea
commit
9b5e0fef01
@ -35,6 +35,9 @@ typedef struct memheader_s
|
|||||||
size_t size; // size of the memory after the header (excluding header and sentinel2)
|
size_t size; // size of the memory after the header (excluding header and sentinel2)
|
||||||
const char *filename; // file name and line where Mem_Alloc was called
|
const char *filename; // file name and line where Mem_Alloc was called
|
||||||
uint fileline;
|
uint fileline;
|
||||||
|
#if !XASH_64BIT
|
||||||
|
uint pad0; // doesn't have value, only to make Mem_Alloc return aligned addresses on ILP32
|
||||||
|
#endif
|
||||||
uint sentinel1; // should always be MEMHEADER_SENTINEL1
|
uint sentinel1; // should always be MEMHEADER_SENTINEL1
|
||||||
|
|
||||||
// immediately followed by data, which is followed by a MEMHEADER_SENTINEL2 byte
|
// immediately followed by data, which is followed by a MEMHEADER_SENTINEL2 byte
|
||||||
|
Loading…
Reference in New Issue
Block a user