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/ea/loginhandler.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/net/ea/loginhandler.cpp') diff --git a/src/net/ea/loginhandler.cpp b/src/net/ea/loginhandler.cpp index 451850430..ece10c725 100644 --- a/src/net/ea/loginhandler.cpp +++ b/src/net/ea/loginhandler.cpp @@ -136,7 +136,7 @@ void LoginHandler::clearWorlds() void LoginHandler::procecessCharPasswordResponse(Net::MessageIn &msg) const { // 0: acc not found, 1: success, 2: password mismatch, 3: pass too short - const int errMsg = msg.readInt8(); + const uint8_t errMsg = msg.readUInt8(); // Successful pass change if (errMsg == 1) { @@ -203,7 +203,8 @@ void LoginHandler::processLoginData(Net::MessageIn &msg) // msg.skip(30); // unknown // reserve bits for future usage - mToken.sex = Being::intToGender(static_cast(msg.readInt8() & 3)); + mToken.sex = Being::intToGender(static_cast( + msg.readUInt8() & 3U)); for (int i = 0; i < worldCount; i++) { @@ -228,8 +229,8 @@ void LoginHandler::processLoginData(Net::MessageIn &msg) void LoginHandler::processLoginError(Net::MessageIn &msg) const { - const int code = msg.readInt8(); - logger->log("Login::error code: %i", code); + const uint8_t code = msg.readUInt8(); + logger->log("Login::error code: %u", static_cast(code)); switch (code) { -- cgit v1.2.3-70-g09d2