Skip to content

Commit 89289d8

Browse files
committed
Fix warning introduced by #6412
SOCKET are defined as unsigned integers, thus always >=0.
1 parent 1a2de32 commit 89289d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/compat.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ bool static inline IsSelectableSocket(SOCKET s) {
9696
#ifdef WIN32
9797
return true;
9898
#else
99-
return (s >= 0 && s < FD_SETSIZE);
99+
return (s < FD_SETSIZE);
100100
#endif
101101
}
102102

0 commit comments

Comments
 (0)