CL_ParseEntityBits overflow warning fix

This commit is contained in:
David Carlier 2022-02-21 08:39:08 +00:00
parent e7df0977b0
commit ca4e5ef935

View file

@ -113,7 +113,7 @@ CL_ParseEntityBits(unsigned *bits)
/* count the bits for net profiling */ /* count the bits for net profiling */
for (i = 0; i < 32; i++) for (i = 0; i < 32; i++)
{ {
if (total & (1 << i)) if (total & (1u << i))
{ {
bitcounts[i]++; bitcounts[i]++;
} }
@ -648,7 +648,7 @@ CL_ParsePlayerstate(frame_t *oldframe, frame_t *newframe)
for (i = 0; i < MAX_STATS; i++) for (i = 0; i < MAX_STATS; i++)
{ {
if (statbits & (1 << i)) if (statbits & (1u << i))
{ {
state->stats[i] = MSG_ReadShort(&net_message); state->stats[i] = MSG_ReadShort(&net_message);
} }