summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-07-18 02:44:03 +0300
committerAndrei Karas <akaras@inbox.ru>2012-07-18 02:44:03 +0300
commite28e0566b6141df26fc1632f5ff67da47d4cd350 (patch)
tree5cd4a10796bb0c8ee8f319a55cf253b471374b9e
parentf0e95132f27ceb901fbd779fafc798a1f67a06a6 (diff)
downloadplus-e28e0566b6141df26fc1632f5ff67da47d4cd350.tar.gz
plus-e28e0566b6141df26fc1632f5ff67da47d4cd350.tar.bz2
plus-e28e0566b6141df26fc1632f5ff67da47d4cd350.tar.xz
plus-e28e0566b6141df26fc1632f5ff67da47d4cd350.zip
last warning fixes.
-rw-r--r--src/being.cpp6
-rw-r--r--src/gui/logindialog.cpp2
-rw-r--r--src/map.cpp2
3 files changed, 5 insertions, 5 deletions
diff --git a/src/being.cpp b/src/being.cpp
index 33f4e102a..14bfe1923 100644
--- a/src/being.cpp
+++ b/src/being.cpp
@@ -2525,11 +2525,11 @@ void Being::undressItemById(int id)
{
size_t sz = mSpriteIDs.size();
- for (int f = 0; f < sz; f ++)
+ for (size_t f = 0; f < sz; f ++)
{
if (id == mSpriteIDs[f])
{
- setSprite(f, 0);
+ setSprite(static_cast<unsigned int>(f), 0);
break;
}
}
@@ -2693,7 +2693,7 @@ BeingEquipBackend::BeingEquipBackend(Being *being):
{
size_t sz = being->mSpriteIDs.size();
- for (int f = 0; f < sz; f ++)
+ for (unsigned f = 0; f < sz; f ++)
{
int idx = Net::getInventoryHandler()->convertFromServerSlot(f);
int id = being->mSpriteIDs[f];
diff --git a/src/gui/logindialog.cpp b/src/gui/logindialog.cpp
index d8ba0232e..65b1541f8 100644
--- a/src/gui/logindialog.cpp
+++ b/src/gui/logindialog.cpp
@@ -95,7 +95,7 @@ class UpdateListModel : public gcn::ListModel
{
if (!mLoginData)
return 0;
- return mLoginData->updateHosts.size();
+ return static_cast<int>(mLoginData->updateHosts.size());
}
virtual std::string getElementAt(int i)
diff --git a/src/map.cpp b/src/map.cpp
index 1b25bee02..574b70e41 100644
--- a/src/map.cpp
+++ b/src/map.cpp
@@ -1377,7 +1377,7 @@ void Map::indexTilesets()
if (s)
{
const int start = s->getFirstGid();
- const int end = stati_cast<int>(start + s->size());
+ const int end = static_cast<int>(start + s->size());
for (int f = start; f < end; f ++)
{
if (f < size)