summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-02-21 01:05:33 +0300
committerAndrei Karas <akaras@inbox.ru>2016-02-21 01:05:33 +0300
commit414b9fbcd9bf6f49ba98d84babfac143aa9e6532 (patch)
tree11bfbec2a49fb04ddd943e951a4c4b0384db6214 /src
parent849bf8bca7d8df41bc6adca236fef8ba2886d1ff (diff)
downloadplus-414b9fbcd9bf6f49ba98d84babfac143aa9e6532.tar.gz
plus-414b9fbcd9bf6f49ba98d84babfac143aa9e6532.tar.bz2
plus-414b9fbcd9bf6f49ba98d84babfac143aa9e6532.tar.xz
plus-414b9fbcd9bf6f49ba98d84babfac143aa9e6532.zip
Change some int constants to unsigned.
Diffstat (limited to 'src')
-rw-r--r--src/net/eathena/skillrecv.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/net/eathena/skillrecv.cpp b/src/net/eathena/skillrecv.cpp
index 66450cccc..52f2e3b2b 100644
--- a/src/net/eathena/skillrecv.cpp
+++ b/src/net/eathena/skillrecv.cpp
@@ -299,7 +299,7 @@ void SkillRecv::processSkillFailed(Net::MessageIn &msg)
break;
case RFAIL_NEED_EQUIPMENT:
{
- const int itemId = bskill >> 16;
+ const int itemId = bskill >> 16U;
const int amount = bskill & 0xFFFFU;
const ItemInfo &info = ItemDB::get(itemId);
if (amount == 1)
@@ -319,7 +319,7 @@ void SkillRecv::processSkillFailed(Net::MessageIn &msg)
}
case RFAIL_NEED_ITEM:
{
- const int itemId = bskill >> 16;
+ const int itemId = bskill >> 16U;
const int amount = bskill & 0xFFFFU;
const ItemInfo &info = ItemDB::get(itemId);
if (amount == 1)