Fix warning introduced by #6412

SOCKET are defined as unsigned integers, thus always >=0.

Rebased-From: 89289d875d
This commit is contained in:
Wladimir J. van der Laan 2015-07-20 17:10:02 +02:00
parent 0095b9a1ff
commit e8b87c8f78
No known key found for this signature in database
GPG key ID: 74810B012346C9A6

View file

@ -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
}