diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-09-26 23:25:32 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-09-26 23:25:32 +0300 |
commit | 3ed2e647a7ec634a91a32e7ac493c9f2b6d693b0 (patch) | |
tree | d7f1400583c5bc6916129e05fc5e0907d1081ca9 /src/net/eathena/mailhandler.cpp | |
parent | 6112e911a5b702fa1a9fca7bb6300f0195cbe685 (diff) | |
download | manaverse-3ed2e647a7ec634a91a32e7ac493c9f2b6d693b0.tar.gz manaverse-3ed2e647a7ec634a91a32e7ac493c9f2b6d693b0.tar.bz2 manaverse-3ed2e647a7ec634a91a32e7ac493c9f2b6d693b0.tar.xz manaverse-3ed2e647a7ec634a91a32e7ac493c9f2b6d693b0.zip |
Fix code style.
Diffstat (limited to 'src/net/eathena/mailhandler.cpp')
-rw-r--r-- | src/net/eathena/mailhandler.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/net/eathena/mailhandler.cpp b/src/net/eathena/mailhandler.cpp index 00fa5fac5..24eb24a66 100644 --- a/src/net/eathena/mailhandler.cpp +++ b/src/net/eathena/mailhandler.cpp @@ -71,7 +71,7 @@ void MailHandler::processMailOpen(Net::MessageIn &msg) const break; default: - logger->log("unknown mail window open flag: %u", flag); + logger->log("unknown mail window open flag: %d", flag); break; } } @@ -128,10 +128,10 @@ void MailHandler::send(const std::string &name, const int sz = static_cast<int>(message.size()); createOutPacket(CMSG_MAIL_SEND); - outMsg.writeInt16(69 + sz); + outMsg.writeInt16(static_cast<int16_t>(69 + sz)); outMsg.writeString(name, 24, "name"); outMsg.writeString(title, 40, "title"); - outMsg.writeInt8(sz); + outMsg.writeInt8(static_cast<int8_t>(sz)); outMsg.writeString(message, sz, "message"); } |