diff --git a/engine/common/common.c b/engine/common/common.c index dea018db..89c7a984 100644 --- a/engine/common/common.c +++ b/engine/common/common.c @@ -251,7 +251,7 @@ static void LZSS_BuildHash( lzss_state_t *state, const byte *source ) { lzss_list_t *list; lzss_node_t *node; - unsigned int targetindex = (uint)source & ( state->window_size - 1 ); + unsigned int targetindex = (uintptr_t)source & ( state->window_size - 1 ); node = &state->hash_node[targetindex]; diff --git a/engine/common/net_buffer.c b/engine/common/net_buffer.c index 966606cc..1cef1c83 100644 --- a/engine/common/net_buffer.c +++ b/engine/common/net_buffer.c @@ -618,7 +618,7 @@ qboolean MSG_ReadBits( sizebuf_t *sb, void *pOutData, int nBits ) int nBitsLeft = nBits; // get output dword-aligned. - while((( uint32_t )pOut & 3) != 0 && nBitsLeft >= 8 ) + while((( uintptr_t )pOut & 3) != 0 && nBitsLeft >= 8 ) { *pOut = (byte)MSG_ReadUBitLong( sb, 8 ); ++pOut;