Browse Source

Merge branch 'master' of https://github.com/lprylli/tigervnc

tags/v1.9.90
Pierre Ossman 5 years ago
parent
commit
c65cd4b746
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      common/rfb/Congestion.cxx

+ 1
- 1
common/rfb/Congestion.cxx View File



// Compare position even when wrapped around // Compare position even when wrapped around
static inline bool isAfter(unsigned a, unsigned b) { 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"); static LogWriter vlog("Congestion");

Loading…
Cancel
Save