From b361da6e1eb9c20917d9dcfb30f46c2bf3344408 Mon Sep 17 00:00:00 2001 From: Leon Styhre Date: Sat, 9 Jan 2021 13:44:18 +0100 Subject: [PATCH] Fixed two MSVC compiler warnings. --- es-app/src/guis/GuiGamelistOptions.cpp | 2 +- es-app/src/guis/GuiMenu.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/es-app/src/guis/GuiGamelistOptions.cpp b/es-app/src/guis/GuiGamelistOptions.cpp index 611ebddca..206e2f564 100644 --- a/es-app/src/guis/GuiGamelistOptions.cpp +++ b/es-app/src/guis/GuiGamelistOptions.cpp @@ -122,7 +122,7 @@ GuiGamelistOptions::GuiGamelistOptions( root = mSystem->getRootFolder(); std::string sortType = root->getSortTypeString(); - unsigned int numSortTypes = FileSorts::SortTypes.size(); + unsigned int numSortTypes = static_cast(FileSorts::SortTypes.size()); // If it's not a collection, then hide the System sort options. if (!root->getSystem()->isCollection()) numSortTypes -= 2; diff --git a/es-app/src/guis/GuiMenu.cpp b/es-app/src/guis/GuiMenu.cpp index e893cf78e..e86e4f5aa 100644 --- a/es-app/src/guis/GuiMenu.cpp +++ b/es-app/src/guis/GuiMenu.cpp @@ -255,7 +255,7 @@ void GuiMenu::openUISettings() auto default_sort_order = std::make_shared (mWindow, getHelpStyle(), "DEFAULT SORT ORDER", false); // Exclude the System sort options. - unsigned int numSortTypes = FileSorts::SortTypes.size() - 2; + unsigned int numSortTypes = static_cast(FileSorts::SortTypes.size() - 2); for (unsigned int i = 0; i < numSortTypes; i++) { if (FileSorts::SortTypes[i].description == Settings::getInstance()->getString("DefaultSortOrder")) {