mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-23 04:42:32 +00:00
[qwaq] Align progs memory to 64 bytes
It doesn't do much good for dynamic progs memory because zone currently aligns to 8 bytes (oops, forgot to fix that), but at least the stack and globals are properly aligned.
This commit is contained in:
parent
98215b46ad
commit
e3f88b2b9c
1 changed files with 1 additions and 1 deletions
|
@ -119,7 +119,7 @@ load_file (progs_t *pr, const char *name, off_t *_size)
|
||||||
static void *
|
static void *
|
||||||
allocate_progs_mem (progs_t *pr, int size)
|
allocate_progs_mem (progs_t *pr, int size)
|
||||||
{
|
{
|
||||||
return malloc (size);
|
return aligned_alloc (64, size);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|
Loading…
Reference in a new issue