mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-04 22:31:27 +02:00
change call to std::abs to abs in SequenceNumberStats
This commit is contained in:
parent
161b3b83d7
commit
118b3133c5
1 changed files with 1 additions and 1 deletions
|
@ -68,7 +68,7 @@ SequenceNumberStats::ArrivalInfo SequenceNumberStats::sequenceNumberReceived(qui
|
|||
int expectedInt = (int)expected;
|
||||
|
||||
// check if the gap between incoming and expected is reasonable, taking possible rollover into consideration
|
||||
int absGap = std::abs(incomingInt - expectedInt);
|
||||
int absGap = abs(incomingInt - expectedInt);
|
||||
if (absGap >= UINT16_RANGE - MAX_REASONABLE_SEQUENCE_GAP) {
|
||||
// rollover likely occurred between incoming and expected.
|
||||
// correct the larger of the two so that it's within [-UINT16_RANGE, -1] while the other remains within [0, UINT16_RANGE-1]
|
||||
|
|
Loading…
Reference in a new issue