From 0561af8232b50071676ae18d5e78ba43b15bff94 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 17 Sep 2014 17:24:35 +0300 Subject: Fix casting in logging packets. --- src/net/eathena/messageout.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/net/eathena/messageout.cpp') diff --git a/src/net/eathena/messageout.cpp b/src/net/eathena/messageout.cpp index 1b0dae6f1..f2b851ad4 100644 --- a/src/net/eathena/messageout.cpp +++ b/src/net/eathena/messageout.cpp @@ -64,7 +64,8 @@ void MessageOut::writeInt16(const int16_t value, const char *const str) #else memcpy(mData + static_cast(mPos), &value, sizeof(int16_t)); #endif - DEBUGLOG2("writeInt16: " + toStringPrint(static_cast(value)), + DEBUGLOG2("writeInt16: " + toStringPrint(static_cast( + static_cast(value))), mPos, str); mPos += 2; PacketCounters::incOutBytes(2); @@ -72,7 +73,8 @@ void MessageOut::writeInt16(const int16_t value, const char *const str) void MessageOut::writeInt32(const int32_t value, const char *const str) { - DEBUGLOG2("writeInt32: " + toStringPrint(value), mPos, str); + DEBUGLOG2("writeInt32: " + toStringPrint(static_cast(value)), + mPos, str); expand(4); #if SDL_BYTEORDER == SDL_BIG_ENDIAN int32_t swap = SDL_Swap32(value); -- cgit v1.2.3-60-g2f50