Browse Source

Fix warning introduced by #6412

SOCKET are defined as unsigned integers, thus always >=0.
0.13
Wladimir J. van der Laan 9 years ago
parent
commit
89289d875d
No known key found for this signature in database
GPG Key ID: 74810B012346C9A6
  1. 2
      src/compat.h

2
src/compat.h

@ -96,7 +96,7 @@ bool static inline IsSelectableSocket(SOCKET s) { @@ -96,7 +96,7 @@ bool static inline IsSelectableSocket(SOCKET s) {
#ifdef WIN32
return true;
#else
return (s >= 0 && s < FD_SETSIZE);
return (s < FD_SETSIZE);
#endif
}

Loading…
Cancel
Save