summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/cgame/cg_mem.c2
-rw-r--r--src/game/g_mem.c2
-rw-r--r--src/ui/ui_players.c2
3 files changed, 3 insertions, 3 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;
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;
diff --git a/src/ui/ui_players.c b/src/ui/ui_players.c
index 5dbfdd3..acf14b5 100644
--- a/src/ui/ui_players.c
+++ b/src/ui/ui_players.c
@@ -1194,7 +1194,7 @@ qboolean UI_RegisterClientModelname( playerInfo_t *pi, const char *modelSkinName
}
}
- if (headModelName && headModelName[0] == '*' ) {
+ if (headModelName[0] == '*' ) {
Com_sprintf( filename, sizeof( filename ), "models/players/heads/%s/%s.md3", &headModelName[1], &headModelName[1] );
}
else {