summaryrefslogtreecommitdiff
path: root/src/cgame
diff options
context:
space:
mode:
author/dev/humancontroller <devhc@example.com>2017-04-13 11:30:00 +0000
committer/dev/humancontroller <devhc@example.com>2017-04-15 17:24:16 +0200
commit979776bf1d7319218d84dd488ed69a45a854dce1 (patch)
tree8ff840394f86f0ab7e8c6a832cf0f023b6c5d351 /src/cgame
parent997dca8b0297aa186931a84e9f9838b2867f7f1e (diff)
fix/silence a couple of compiler warnings
Diffstat (limited to 'src/cgame')
-rw-r--r--src/cgame/cg_mem.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cgame/cg_mem.c b/src/cgame/cg_mem.c
index 6cf5ddd..5e03d44 100644
--- a/src/cgame/cg_mem.c
+++ b/src/cgame/cg_mem.c
@@ -48,7 +48,7 @@ void *CG_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;