Pierre Ossman pirms 5 gadiem
vecāks
revīzija
c65cd4b746
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1
    1
      common/rfb/Congestion.cxx

+ 1
- 1
common/rfb/Congestion.cxx Parādīt failu

@@ -70,7 +70,7 @@ static const unsigned MAXIMUM_WINDOW = 4194304;

// Compare position even when wrapped around
static inline bool isAfter(unsigned a, unsigned b) {
return (int)a - (int)b > 0;
return a != b && a - b <= UINT_MAX / 2;
}

static LogWriter vlog("Congestion");

Notiek ielāde…
Atcelt
Saglabāt