From 38bed185876ab4e639412392005c0fe01e05d4f2 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 1 Jan 2015 19:32:03 +0300 Subject: Fix compilation warning. --- src/gui/widgets/characterviewnormal.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/gui/widgets') 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(sz)) { CharacterDisplay *const display = (*mCharacterEntries)[mSelected]; if (display) -- cgit v1.2.3-70-g09d2