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; uint64_t currentFrameNumber;
/** Previous Frame number from buffer to calculate loss */ /** Previous Frame number from buffer to calculate loss */
uint64_t previousFrameNumber; int64_t previousFrameNumber;
/* Acquisition started */ /* Acquisition started */
bool acqStarted; bool acqStarted;

View File

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