fixed problem introduced by warning fix
This commit is contained in:
+1
-1
@@ -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 ()
|
||||
|
||||
@@ -134,7 +134,7 @@ epicsUInt16 comQueRecv::multiBufferPopUInt16 ()
|
||||
if ( this->occupiedBytes() >= sizeof (tmp) ) {
|
||||
unsigned byte1 = this->popUInt8();
|
||||
unsigned byte2 = this->popUInt8();
|
||||
tmp = static_cast <epicsUInt16> ( byte1 << ( 8u | byte2 ) );
|
||||
tmp = static_cast <epicsUInt16> ( ( byte1 << 8u ) | byte2 );
|
||||
}
|
||||
else {
|
||||
comBuf::throwInsufficentBytesException ();
|
||||
|
||||
Reference in New Issue
Block a user