diff options
author | Gavin Andresen <gavinandresen@gmail.com> | 2011-08-10 20:01:37 -0700 |
---|---|---|
committer | Gavin Andresen <gavinandresen@gmail.com> | 2011-08-10 20:01:37 -0700 |
commit | c648b589bec6494551d300b335af88d6b194cf82 (patch) | |
tree | 2c643cc2ecbd1255c4e38af8b43fb21de4e9fbbc /src | |
parent | 72173ffaca10a8370921b9f64668df142ba818ab (diff) | |
parent | 25133bd74b75825e8f2ddf551ca09f4537b73a0f (diff) |
Merge pull request #459 from jgarzik/char-msgstart
Use 'unsigned char' rather than 'char' for pchMessageStart.
Diffstat (limited to 'src')
-rw-r--r-- | src/main.cpp | 2 | ||||
-rw-r--r-- | src/net.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/main.cpp b/src/main.cpp index dccc1727f0..f129fb6506 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1775,7 +1775,7 @@ bool static AlreadyHave(CTxDB& txdb, const CInv& inv) // The message start string is designed to be unlikely to occur in normal data. // The characters are rarely used upper ascii, not valid as UTF-8, and produce // a large 4-byte int at any alignment. -char pchMessageStart[4] = { 0xf9, 0xbe, 0xb4, 0xd9 }; +unsigned char pchMessageStart[4] = { 0xf9, 0xbe, 0xb4, 0xd9 }; bool static ProcessMessage(CNode* pfrom, string strCommand, CDataStream& vRecv) @@ -67,7 +67,7 @@ bool StopNode(); // (4) size // (4) checksum -extern char pchMessageStart[4]; +extern unsigned char pchMessageStart[4]; class CMessageHeader { |