aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2015-07-20 17:10:02 +0200
committerWladimir J. van der Laan <laanwj@gmail.com>2015-07-20 17:30:17 +0200
commitae52a7ffd1b3743e76220812c7f581c5c08f975b (patch)
tree0cb15660c7564ea83c57d3624074fae98cacec72
parent0739e6e57a4b59966588a79ac2646eb3264c4dfa (diff)
downloadbitcoin-ae52a7ffd1b3743e76220812c7f581c5c08f975b.tar.xz
Fix warning introduced by #6412
SOCKET are defined as unsigned integers, thus always >=0. Rebased-From: 89289d875da108c42ca013f33597eda46cb6eb53
-rw-r--r--src/compat.h2
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
}