diff options
author | Gavin Andresen <gavinandresen@gmail.com> | 2012-04-17 10:55:56 -0700 |
---|---|---|
committer | Gavin Andresen <gavinandresen@gmail.com> | 2012-04-17 10:55:56 -0700 |
commit | b97d54355e8239273b50c54dbedfde16ed82fd73 (patch) | |
tree | 7c605817ec5a41b86b5656916eaa014e13fb247f /src/net.h | |
parent | e873dc654c81810272e71af8b52a3836d2c8bf0a (diff) | |
parent | 9fb89c26f3a3991d197b207f44ef79b1d16c26fc (diff) |
Merge pull request #1106 from jgarzik/sign-compare
Fix many sign-comparison warnings found in bitcoin codebase
Diffstat (limited to 'src/net.h')
-rw-r--r-- | src/net.h | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -117,7 +117,7 @@ public: int64 nLastRecv; int64 nLastSendEmpty; int64 nTimeConnected; - unsigned int nHeaderStart; + int nHeaderStart; unsigned int nMessageStart; CAddress addr; int nVersion; @@ -299,7 +299,7 @@ public: void AbortMessage() { - if (nHeaderStart == -1) + if (nHeaderStart < 0) return; vSend.resize(nHeaderStart); nHeaderStart = -1; @@ -319,7 +319,7 @@ public: return; } - if (nHeaderStart == -1) + if (nHeaderStart < 0) return; // Set the size @@ -344,7 +344,7 @@ public: void EndMessageAbortIfEmpty() { - if (nHeaderStart == -1) + if (nHeaderStart < 0) return; int nSize = vSend.size() - nMessageStart; if (nSize > 0) |