summaryrefslogtreecommitdiff
path: root/src/gui/widgets/characterviewnormal.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-01-01 19:32:03 +0300
committerAndrei Karas <akaras@inbox.ru>2015-01-01 19:32:03 +0300
commit38bed185876ab4e639412392005c0fe01e05d4f2 (patch)
tree13cf6f6a6a7a416de5c760159725c75b6e001d7e /src/gui/widgets/characterviewnormal.cpp
parent37be713ea07bbe8ddcea10c77bf1bfa2cd74b989 (diff)
downloadmanaplus-38bed185876ab4e639412392005c0fe01e05d4f2.tar.gz
manaplus-38bed185876ab4e639412392005c0fe01e05d4f2.tar.bz2
manaplus-38bed185876ab4e639412392005c0fe01e05d4f2.tar.xz
manaplus-38bed185876ab4e639412392005c0fe01e05d4f2.zip
Fix compilation warning.
Diffstat (limited to 'src/gui/widgets/characterviewnormal.cpp')
-rw-r--r--src/gui/widgets/characterviewnormal.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/widgets/characterviewnormal.cpp b/src/gui/widgets/characterviewnormal.cpp
index ba25e2753..97f195682 100644
--- a/src/gui/widgets/characterviewnormal.cpp
+++ b/src/gui/widgets/characterviewnormal.cpp
@@ -44,7 +44,7 @@ CharacterViewNormal::CharacterViewNormal(CharSelectDialog *const widget,
character->setVisible(true);
}
const size_t sz = mCharacterEntries->size();
- if (mSelected >= 0 && mSelected < sz)
+ if (mSelected >= 0 && mSelected < static_cast<signed>(sz))
{
CharacterDisplay *const display = (*mCharacterEntries)[mSelected];
if (display)