summaryrefslogtreecommitdiff
path: root/src/net/messageout.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-09-17 17:24:35 +0300
committerAndrei Karas <akaras@inbox.ru>2014-09-17 17:24:35 +0300
commit0561af8232b50071676ae18d5e78ba43b15bff94 (patch)
tree0d51a5ca7662fbf6f1049a6e6ac81e95d5bbd8e8 /src/net/messageout.cpp
parent38659dbd75d81edbe336d5311a1cd1184d359b7e (diff)
downloadplus-0561af8232b50071676ae18d5e78ba43b15bff94.tar.gz
plus-0561af8232b50071676ae18d5e78ba43b15bff94.tar.bz2
plus-0561af8232b50071676ae18d5e78ba43b15bff94.tar.xz
plus-0561af8232b50071676ae18d5e78ba43b15bff94.zip
Fix casting in logging packets.
Diffstat (limited to 'src/net/messageout.cpp')
-rw-r--r--src/net/messageout.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/net/messageout.cpp b/src/net/messageout.cpp
index 7ee08b0d4..3241ffbfd 100644
--- a/src/net/messageout.cpp
+++ b/src/net/messageout.cpp
@@ -53,7 +53,8 @@ void MessageOut::writeInt8(const int8_t value, const char *const str)
{
expand(1);
mData[mPos] = value;
- DEBUGLOG2("writeInt8: " + toStringPrint(static_cast<int>(value)),
+ DEBUGLOG2("writeInt8: " + toStringPrint(static_cast<unsigned int>(
+ static_cast<uint8_t>(value))),
mPos, str);
mPos += 1;
PacketCounters::incOutBytes(1);