radioInterface: Fix variable storing integer return value

Change-Id: I0a0a06a6d16a228cfcb7bd746bab2d79f10ce244
changes/44/10744/3
Pau Espin 4 years ago
parent db936b9b55
commit 970096932e
  1. 5
      Transceiver52M/radioInterface.cpp

@ -304,7 +304,8 @@ double RadioInterface::getRxGain(size_t chan)
int RadioInterface::pullBuffer()
{
bool local_underrun;
size_t numRecv, segmentLen = recvBuffer[0]->getSegmentLen();
int numRecv;
size_t segmentLen = recvBuffer[0]->getSegmentLen();
if (recvBuffer[0]->getFreeSegments() <= 0)
return -1;
@ -316,7 +317,7 @@ int RadioInterface::pullBuffer()
readTimestamp,
&local_underrun);
if (numRecv != segmentLen) {
if ((size_t) numRecv != segmentLen) {
LOG(ALERT) << "Receive error " << numRecv;
return -1;
}

Loading…
Cancel
Save