From 015f1a8f3e97025af7b33d6939e2647488bad2a2 Mon Sep 17 00:00:00 2001 From: XoD Date: Wed, 21 Dec 2011 22:07:35 +0100 Subject: [PATCH] Add parentesis aroud '&' to avoid script warning Gcc warn suggest parentheses arout arithmetic in operand of '|'. Signed-off-by: XoD --- neo/idlib/BitMsg.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/neo/idlib/BitMsg.cpp b/neo/idlib/BitMsg.cpp index 13813d9..775de92 100644 --- a/neo/idlib/BitMsg.cpp +++ b/neo/idlib/BitMsg.cpp @@ -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 ); } /*