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:11:31 +0200 |
commit | e8b87c8f78fd66ebeb10ce5dfcf72b0a5e73f120 (patch) | |
tree | 73fcf7dedb60e7e9362db0b8d86009e8daa38322 | |
parent | 0095b9a1ff6a5d8d2b6662f7706c191534709b90 (diff) | |
download | bitcoin-e8b87c8f78fd66ebeb10ce5dfcf72b0a5e73f120.tar.xz |
Fix warning introduced by #6412
SOCKET are defined as unsigned integers, thus always >=0.
Rebased-From: 89289d875da108c42ca013f33597eda46cb6eb53
-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 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 } |