aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/compat.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compat.h b/src/compat.h
index f88b6ce36e..5378c2c761 100644
--- a/src/compat.h
+++ b/src/compat.h
@@ -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
}