From afdcde4b54d4979ad8b29da6c766151cc01d5fec Mon Sep 17 00:00:00 2001 From: D G Turner Date: Mon, 27 Nov 2017 11:39:58 +0000 Subject: GUI: Fix Signed vs. Unsigned Comparison GCC Compiler Warning. --- gui/saveload-dialog.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gui') diff --git a/gui/saveload-dialog.cpp b/gui/saveload-dialog.cpp index cbfaaed8dd..189760b4e1 100644 --- a/gui/saveload-dialog.cpp +++ b/gui/saveload-dialog.cpp @@ -698,7 +698,7 @@ void SaveLoadChooserSimple::updateSaveList() { int selected = _list->getSelected(); _list->setList(saveNames, &colors); - if (selected >= 0 && selected < saveNames.size()) + if (selected >= 0 && selected < (int)saveNames.size()) _list->setSelected(selected); else _chooseButton->setEnabled(false); -- cgit v1.2.3