mirror of
https://github.com/TTimo/doom3.gpl.git
synced 2026-03-19 16:39:24 +01:00
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:
@@ -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 );
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user