Fix a few warnings
This commit is contained in:
1 parent
c621589157
commit
621a72e698
18 files changed
+76
-74
No files matched your search
+1
-1
@@ -246,7 +246,7 @@ int MSG_ReadBits( msg_t *msg, int bits ) {
|
||||
}
|
||||
msg->readcount = (msg->bit>>3)+1;
|
||||
}
|
||||
if ( sgn ) {
|
||||
if ( sgn && bits > 0 && bits < 32 ) {
|
||||
if ( value & ( 1 << ( bits - 1 ) ) ) {
|
||||
value |= -1 ^ ( ( 1 << bits ) - 1 );
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user