Assorted warning fixes and cleanups

This commit is contained in:
Henrik Rydgard committed 2013-07-06 11:09:19 +02:00
1 parent 7960bd0767
commit a599bf7500
9 files changed
+67 -70

No files matched your search

+3 -3
View File
@@ -75,7 +75,7 @@ void Config::Load(const char *iniFileName)
general->Get("TopMost", &bTopMost);
#endif
if (recentIsos.size() > iMaxRecent)
if ((int)recentIsos.size() > iMaxRecent)
recentIsos.resize(iMaxRecent);
IniFile::Section *cpu = iniFile.GetOrCreateSection("CPU");
@@ -290,13 +290,13 @@ void Config::AddRecent(const std::string &file) {
if (*str == file) {
recentIsos.erase(str);
recentIsos.insert(recentIsos.begin(), file);
if (recentIsos.size() > iMaxRecent)
if ((int)recentIsos.size() > iMaxRecent)
recentIsos.resize(iMaxRecent);
return;
}
}
recentIsos.insert(recentIsos.begin(), file);
if (recentIsos.size() > iMaxRecent)
if ((int)recentIsos.size() > iMaxRecent)
recentIsos.resize(iMaxRecent);
}