added parens to fix borland warning
This commit is contained in:
+3
-2
@@ -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
@@ -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 ()
|
||||
|
||||
Reference in New Issue
Block a user