mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2024-11-14 00:41:03 +00:00
CL_ParseEntityBits overflow warning fix
This commit is contained in:
parent
e7df0977b0
commit
ca4e5ef935
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue