Change shift expressions to unsigned types. Shifting signed values to
a result that is not representable has undefined behaviour.
This commit is contained in:
parent
7e2aa2c627
commit
ed1794fe17
6 changed files with 11 additions and 8 deletions
|
@ -468,7 +468,7 @@ void SV_SpawnServer( char *server, qboolean killBots ) {
|
|||
Cvar_Set("cl_paused", "0");
|
||||
|
||||
// get a new checksum feed and restart the file system
|
||||
sv.checksumFeed = ( ((int) rand() << 16) ^ rand() ) ^ Com_Milliseconds();
|
||||
sv.checksumFeed = ( ((unsigned int)rand() << 16) ^ (unsigned int)rand() ) ^ Com_Milliseconds();
|
||||
FS_Restart( sv.checksumFeed );
|
||||
|
||||
CM_LoadMap( va("maps/%s.bsp", server), qfalse, &checksum );
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue