diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-09-17 17:24:35 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-09-17 17:24:35 +0300 |
commit | 0561af8232b50071676ae18d5e78ba43b15bff94 (patch) | |
tree | 0d51a5ca7662fbf6f1049a6e6ac81e95d5bbd8e8 /src/net/messagein.cpp | |
parent | 38659dbd75d81edbe336d5311a1cd1184d359b7e (diff) | |
download | plus-0561af8232b50071676ae18d5e78ba43b15bff94.tar.gz plus-0561af8232b50071676ae18d5e78ba43b15bff94.tar.bz2 plus-0561af8232b50071676ae18d5e78ba43b15bff94.tar.xz plus-0561af8232b50071676ae18d5e78ba43b15bff94.zip |
Fix casting in logging packets.
Diffstat (limited to 'src/net/messagein.cpp')
-rw-r--r-- | src/net/messagein.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/net/messagein.cpp b/src/net/messagein.cpp index fde20a423..79e506715 100644 --- a/src/net/messagein.cpp +++ b/src/net/messagein.cpp @@ -73,7 +73,7 @@ unsigned char MessageIn::readUInt8(const char *const str) if (mPos < mLength) value = static_cast<unsigned char>(mData[mPos]); - DEBUGLOG2("readUInt8: " + toStringPrint(static_cast<int>(value)), + DEBUGLOG2("readUInt8: " + toStringPrint(static_cast<unsigned int>(value)), mPos, str); mPos += 1; PacketCounters::incInBytes(1); @@ -86,7 +86,8 @@ signed char MessageIn::readInt8(const char *const str) if (mPos < mLength) value = static_cast<signed char>(mData[mPos]); - DEBUGLOG2("readInt8: " + toStringPrint(static_cast<int>(value)), + DEBUGLOG2("readInt8: " + toStringPrint(static_cast<unsigned int>( + static_cast<unsigned char>(value))), mPos, str); mPos += 1; PacketCounters::incInBytes(1); |