summaryrefslogtreecommitdiff
path: root/src/gui/outfitwindow.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-01-29 04:22:28 +0300
committerAndrei Karas <akaras@inbox.ru>2012-01-29 04:22:28 +0300
commit1400abb6cfd9596e2b9430385d68e6527f6b0d2b (patch)
tree05e9ddbeb8faaebd130b0f01cc347c2886d8bfe5 /src/gui/outfitwindow.cpp
parent45d131ef829670b7b87783734375a8ea4880e595 (diff)
downloadmanaplus-1400abb6cfd9596e2b9430385d68e6527f6b0d2b.tar.gz
manaplus-1400abb6cfd9596e2b9430385d68e6527f6b0d2b.tar.bz2
manaplus-1400abb6cfd9596e2b9430385d68e6527f6b0d2b.tar.xz
manaplus-1400abb6cfd9596e2b9430385d68e6527f6b0d2b.zip
Fix compilation warnings.
Diffstat (limited to 'src/gui/outfitwindow.cpp')
-rw-r--r--src/gui/outfitwindow.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gui/outfitwindow.cpp b/src/gui/outfitwindow.cpp
index 20b2bac27..73484f1d5 100644
--- a/src/gui/outfitwindow.cpp
+++ b/src/gui/outfitwindow.cpp
@@ -504,7 +504,7 @@ static const SDLKey numsTbl[] =
int OutfitWindow::keyToNumber(SDLKey key) const
{
- for (int f = 0; f < sizeof(numsTbl) / sizeof(SDLKey); f ++)
+ for (unsigned f = 0; f < sizeof(numsTbl) / sizeof(SDLKey); f ++)
{
if (numsTbl[f] == key)
return f;
@@ -512,9 +512,9 @@ int OutfitWindow::keyToNumber(SDLKey key) const
return -1;
}
-SDLKey OutfitWindow::numberToKey(int number) const
+SDLKey OutfitWindow::numberToKey(unsigned number) const
{
- if (number < 0 || number >= sizeof(numsTbl) / sizeof(SDLKey))
+ if (number >= sizeof(numsTbl) / sizeof(SDLKey))
return SDLK_UNKNOWN;
return numsTbl[number];
}