summaryrefslogtreecommitdiff
path: root/src/game/g_mem.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/g_mem.c')
-rw-r--r--src/game/g_mem.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/g_mem.c b/src/game/g_mem.c
index ea8e438..690e136 100644
--- a/src/game/g_mem.c
+++ b/src/game/g_mem.c
@@ -48,7 +48,7 @@ void *G_Alloc( int size )
char *endptr;
int *ptr;
- allocsize = ( size + sizeof(int) + ROUNDBITS ) & ~ROUNDBITS; // Round to 32-byte boundary
+ allocsize = (int)( ( (size_t)size + (size_t)sizeof(int) + (size_t)ROUNDBITS ) & ~(size_t)ROUNDBITS ); // Round to 32-byte boundary
ptr = NULL;
smallest = NULL;