Skip to content

Commit 236be5f

Browse files
committed
- aligned D_MALLOC
1 parent d4cdb48 commit 236be5f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src_rebuild/Game/C/system.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ extern void sys_freeall();
6666
#endif
6767

6868
#else
69-
#define D_MALLOC(size) (char*)mallocptr; mallocptr += (size);// (char*)((int)mallocptr + size + 3 & 0xfffffffc);
69+
#define D_MALLOC(size) (char*)mallocptr; mallocptr += (((size) + 3) & -4);
7070
#define D_TEMPALLOC(size) (char*)mallocptr
7171
#define D_TEMPFREE()
7272
#endif

0 commit comments

Comments
 (0)