Fix a few warnings

This commit is contained in:
Tim Angus committed 2014-08-30 17:29:23 +01:00
1 parent c621589157
commit 621a72e698
18 files changed
+76 -74

No files matched your search

+1 -1
View File
@@ -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 );
}