From ae52a7ffd1b3743e76220812c7f581c5c08f975b Mon Sep 17 00:00:00 2001 From: "Wladimir J. van der Laan" Date: Mon, 20 Jul 2015 17:10:02 +0200 Subject: [PATCH] Fix warning introduced by #6412 SOCKET are defined as unsigned integers, thus always >=0. Rebased-From: 89289d875da108c42ca013f33597eda46cb6eb53 --- src/compat.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compat.h b/src/compat.h index 85c94830a..e08e348ed 100644 --- a/src/compat.h +++ b/src/compat.h @@ -94,7 +94,7 @@ bool static inline IsSelectableSocket(SOCKET s) { #ifdef WIN32 return true; #else - return (s >= 0 && s < FD_SETSIZE); + return (s < FD_SETSIZE); #endif }