aboutsummaryrefslogtreecommitdiff
path: root/src/compat.h
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:10:02 +0200
commit89289d875da108c42ca013f33597eda46cb6eb53 (patch)
treeaa066408002b6c97b40c78e9610c68209004ec85 /src/compat.h
parent1a2de3237fc06a97dd83ab12759c57d83db370ef (diff)
downloadbitcoin-89289d875da108c42ca013f33597eda46cb6eb53.tar.xz
Fix warning introduced by #6412
SOCKET are defined as unsigned integers, thus always >=0.
Diffstat (limited to 'src/compat.h')
-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
}