added parens to fix borland warning

This commit is contained in:
Jeff Hill
2002-10-29 19:08:28 +00:00
parent f7be65a315
commit d9919861f4
2 changed files with 5 additions and 4 deletions
+3 -2
View File
@@ -412,7 +412,7 @@ inline epicsUInt16 comBuf::popUInt16 ()
}
unsigned byte1 = this->buf[ this->nextReadIndex++ ];
unsigned byte2 = this->buf[ this->nextReadIndex++ ];
return static_cast < epicsUInt16 > ( byte1 << 8u | byte2 );
return static_cast < epicsUInt16 > ( byte1 << ( 8u | byte2 ) );
}
inline epicsUInt32 comBuf::popUInt32 ()
@@ -426,7 +426,8 @@ inline epicsUInt32 comBuf::popUInt32 ()
unsigned byte3 = this->buf[ this->nextReadIndex++ ];
unsigned byte4 = this->buf[ this->nextReadIndex++ ];
return static_cast < epicsUInt32 >
( byte1 << 24u | byte2 << 16u | byte3 << 8u | byte4 ); //X aCC 392
( ( byte1 << 24u ) | ( byte2 << 16u ) | //X aCC 392
( byte3 << 8u ) | byte4 ); //X aCC 392
}
#endif // ifndef comBufh
+2 -2
View File
@@ -73,8 +73,8 @@ inline epicsInt8 comQueRecv::popInt8 ()
inline epicsInt16 comQueRecv::popInt16 ()
epics_throws (( comBuf::insufficentBytesAvailable ))
{
return static_cast < epicsInt16 > ( this->popInt8() << 8u
| this->popInt8() << 0u );
return static_cast < epicsInt16 > ( ( this->popInt8() << 8u )
| ( this->popInt8() << 0u ) );
}
inline epicsInt32 comQueRecv::popInt32 ()