Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion PureDOOM.h
Original file line number Diff line number Diff line change
Expand Up @@ -48162,6 +48162,7 @@ void WI_Start(wbstartstruct_t* wbstartstruct)
}
#define ZONEID 0x1d4a11
#define MINFRAGMENT 64
#define MEM_ALIGN sizeof(void *)


typedef struct
Expand Down Expand Up @@ -48301,7 +48302,7 @@ void* Z_Malloc(int size, int tag, void* user)
memblock_t* newblock;
memblock_t* base;

size = (size + 3) & ~3;
size = (size + MEM_ALIGN - 1) & ~(MEM_ALIGN - 1);

// scan through the block list,
// looking for the first free block
Expand Down
3 changes: 2 additions & 1 deletion src/DOOM/z_zone.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@

#define ZONEID 0x1d4a11
#define MINFRAGMENT 64
#define MEM_ALIGN sizeof(void *)


typedef struct
Expand Down Expand Up @@ -182,7 +183,7 @@ void* Z_Malloc(int size, int tag, void* user)
memblock_t* newblock;
memblock_t* base;

size = (size + 3) & ~3;
size = (size + MEM_ALIGN - 1) & ~(MEM_ALIGN - 1);

// scan through the block list,
// looking for the first free block
Expand Down
Loading