Add parentesis aroud '&' to avoid script warning

Gcc warn suggest parentheses arout arithmetic in operand of '|'.

Signed-off-by: XoD <xoddark@gmail.com>
This commit is contained in:
XoD
2011-12-21 22:07:35 +01:00
parent a725daf17e
commit 015f1a8f3e

View File

@@ -515,7 +515,7 @@ int idBitMsg::ReadDeltaByteCounter( int oldValue ) const {
return oldValue;
}
newValue = ReadBits( i );
return ( oldValue & ~( ( 1 << i ) - 1 ) | newValue );
return ( ( oldValue & ~( ( 1 << i ) - 1 ) ) | newValue );
}
/*
@@ -531,7 +531,7 @@ int idBitMsg::ReadDeltaShortCounter( int oldValue ) const {
return oldValue;
}
newValue = ReadBits( i );
return ( oldValue & ~( ( 1 << i ) - 1 ) | newValue );
return ( ( oldValue & ~( ( 1 << i ) - 1 )) | newValue );
}
/*
@@ -547,7 +547,7 @@ int idBitMsg::ReadDeltaLongCounter( int oldValue ) const {
return oldValue;
}
newValue = ReadBits( i );
return ( oldValue & ~( ( 1 << i ) - 1 ) | newValue );
return ( ( oldValue & ~( ( 1 << i ) - 1 ) ) | newValue );
}
/*