aboutsummaryrefslogtreecommitdiff
path: root/src/net.h
diff options
context:
space:
mode:
authorJeff Garzik <jeff@garzik.org>2012-04-15 16:59:48 -0400
committerJeff Garzik <jgarzik@redhat.com>2012-04-15 16:59:48 -0400
commit0dd710acb6ae14bb88b33a9f86c549bdbb4b6975 (patch)
treee8a0b1bcfd7236e06794a74ff68e87e7380a9dbd /src/net.h
parentc3fad8350b5d2596be62399e1ffefc808f328083 (diff)
downloadbitcoin-0dd710acb6ae14bb88b33a9f86c549bdbb4b6975.tar.xz
CNode's nHeaderStart may be negative, so change its type
Diffstat (limited to 'src/net.h')
-rw-r--r--src/net.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/net.h b/src/net.h
index 3c84650c27..343e77a782 100644
--- a/src/net.h
+++ b/src/net.h
@@ -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)