From 979776bf1d7319218d84dd488ed69a45a854dce1 Mon Sep 17 00:00:00 2001
From: /dev/humancontroller <devhc@example.com>
Date: Thu, 13 Apr 2017 11:30:00 +0000
Subject: fix/silence a couple of compiler warnings

---
 src/cgame/cg_mem.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'src/cgame')

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;
-- 
cgit