diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2014-02-04 01:09:46 +0100 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2014-02-04 01:09:46 +0100 |
commit | 3f522c745a91dabfa577b4bf1045e58fa436066e (patch) | |
tree | d9c41d05dc28a1b5fffe5d60a60ba98d829320e3 /sys/src/games/doom/z_zone.c | |
parent | 88505bff06822e2d6313de477874a7a816935ea7 (diff) |
doom: port to amd64
Diffstat (limited to 'sys/src/games/doom/z_zone.c')
-rw-r--r-- | sys/src/games/doom/z_zone.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/src/games/doom/z_zone.c b/sys/src/games/doom/z_zone.c index 434548545..1ca2af58b 100644 --- a/sys/src/games/doom/z_zone.c +++ b/sys/src/games/doom/z_zone.c @@ -179,7 +179,6 @@ void Z_Free (void* ptr) // #define MINFRAGMENT 64 - void* Z_Malloc ( int size, @@ -192,7 +191,7 @@ Z_Malloc memblock_t* newblock; memblock_t* base; - size = (size + 3) & ~3; + size = (size + 7) & ~7; // scan through the block list, // looking for the first free block @@ -437,7 +436,7 @@ Z_ChangeTag2 if (block->id != ZONEID) I_Error ("Z_ChangeTag: freed a pointer without ZONEID"); - if (tag >= PU_PURGELEVEL && (unsigned)block->user < 0x100) + if (tag >= PU_PURGELEVEL && (uintptr)block->user < 0x100) I_Error ("Z_ChangeTag: an owner is required for purgable blocks"); block->tag = tag; |