prevnumber is unsigned before bug

This commit is contained in:
Dhanya Maliakal
2015-12-01 16:39:01 +01:00
parent 6498292ee4
commit 34508012a8
2 changed files with 2 additions and 2 deletions

View File

@ -521,7 +521,7 @@ private:
uint64_t currentFrameNumber;
/** Previous Frame number from buffer to calculate loss */
uint64_t previousFrameNumber;
int64_t previousFrameNumber;
/* Acquisition started */
bool acqStarted;

View File

@ -1938,7 +1938,7 @@ int slsReceiverTCPIPInterface::jungfrau_read_frame(){
currentPacket--;
continue;
}
if(ipnum!= currentPacket){
if((int64_t)ipnum!= currentPacket){
cout << "current packet " << currentPacket << " Wrong packet number " << ipnum << ", copying blank packet" << endl;
memcpy(retval+offsetdest,blackpacket,oneDataSize);
offsetdest += oneDataSize;