From e1841e31c606f1d97ea54c3f00f3380db814f3d2 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 14 Jul 2014 22:44:37 +0300 Subject: Rename readInt8 into readUInt8 because it really read uint8_t. --- src/net/tmwa/generalhandler.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/net/tmwa/generalhandler.cpp') diff --git a/src/net/tmwa/generalhandler.cpp b/src/net/tmwa/generalhandler.cpp index bc24c8bf2..7ef237bbc 100644 --- a/src/net/tmwa/generalhandler.cpp +++ b/src/net/tmwa/generalhandler.cpp @@ -132,8 +132,8 @@ void GeneralHandler::handleMessage(Net::MessageIn &msg) { case SMSG_CONNECTION_PROBLEM: { - const int code = msg.readInt8(); - logger->log("Connection problem: %i", code); + const uint8_t code = msg.readUInt8(); + logger->log("Connection problem: %u", static_cast(code)); switch (code) { -- cgit v1.2.3-70-g09d2