fixed comparison that was always true due to limited range of data type

This commit is contained in:
Matwey V. Kornilov 2012-09-29 22:00:59 +04:00
parent b1549e83cf
commit b0abf3d2c1
1 changed files with 1 additions and 1 deletions

View File

@ -64,7 +64,7 @@ void QAMQP::Frame::Base::readHeader( QDataStream & stream )
void QAMQP::Frame::Base::readEnd( QDataStream & stream )
{
char end_ = 0;
unsigned char end_ = 0;
stream.readRawData(reinterpret_cast<char*>(&end_), sizeof(end_));
if(end_ != AMQP_FRAME_END )
{