diff options
author | Simon Howard | 2010-08-31 19:26:32 +0000 |
---|---|---|
committer | Simon Howard | 2010-08-31 19:26:32 +0000 |
commit | 22fc405736dc4796958de221c07d52432f1b271b (patch) | |
tree | c05962aa5e839566ea40dd9b1f4ba3581954af8a /src/z_zone.c | |
parent | f391d85c96afa91a2302c58191ce8d401fdba2e2 (diff) | |
parent | 64918568eee62c73cbb87aa1bd68e191f19a4af3 (diff) | |
download | chocolate-doom-22fc405736dc4796958de221c07d52432f1b271b.tar.gz chocolate-doom-22fc405736dc4796958de221c07d52432f1b271b.tar.bz2 chocolate-doom-22fc405736dc4796958de221c07d52432f1b271b.zip |
Merge from trunk.
Subversion-branch: /branches/raven-branch
Subversion-revision: 1987
Diffstat (limited to 'src/z_zone.c')
-rw-r--r-- | src/z_zone.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/z_zone.c b/src/z_zone.c index a3900f5b..c7425290 100644 --- a/src/z_zone.c +++ b/src/z_zone.c @@ -41,6 +41,7 @@ // because it will get overwritten automatically if needed. // +#define MEM_ALIGN sizeof(void *) #define ZONEID 0x1d4a11 typedef struct memblock_s @@ -201,7 +202,7 @@ Z_Malloc memblock_t* base; void *result; - size = (size + 3) & ~3; + size = (size + MEM_ALIGN - 1) & ~(MEM_ALIGN - 1); // scan through the block list, // looking for the first free block |