diff options
author | Wladimir J. van der Laan <laanwj@gmail.com> | 2015-07-20 17:10:02 +0200 |
---|---|---|
committer | Wladimir J. van der Laan <laanwj@gmail.com> | 2015-07-20 17:30:17 +0200 |
commit | ae52a7ffd1b3743e76220812c7f581c5c08f975b (patch) | |
tree | 0cb15660c7564ea83c57d3624074fae98cacec72 /src/compat.h | |
parent | 0739e6e57a4b59966588a79ac2646eb3264c4dfa (diff) | |
download | bitcoin-ae52a7ffd1b3743e76220812c7f581c5c08f975b.tar.xz |
Fix warning introduced by #6412
SOCKET are defined as unsigned integers, thus always >=0.
Rebased-From: 89289d875da108c42ca013f33597eda46cb6eb53
Diffstat (limited to 'src/compat.h')
-rw-r--r-- | src/compat.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compat.h b/src/compat.h index 85c94830ae..e08e348ed8 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 } |