1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-20 09:31:15 +02:00

Fix some warnings (MSVC)

This commit is contained in:
James Crook
2018-03-31 13:24:12 +01:00
parent b5ffaca980
commit 4ae394ff5e
5 changed files with 11 additions and 10 deletions

View File

@@ -175,14 +175,14 @@ public:
}
*pi = std::find( choices, choices + nChoices,
IdentInterfaceSymbol{ s, {} } ) - choices;
if (*pi == nChoices)
if (*pi == (int)nChoices)
*pi = -1;
if (*pi < 0 && obsoletes) {
auto index = std::find_if(obsoletes, obsoletes + nObsoletes,
[&](const ObsoleteMap &entry){
return entry.first == s; })
- obsoletes;
if (index < nObsoletes)
if (index < (int)nObsoletes)
*pi = (int)obsoletes[index].second;
}
return true;
@@ -203,7 +203,7 @@ public:
bool WriteEnum(const wxString & key, int value,
const IdentInterfaceSymbol choices[], size_t nChoices)
{
if (value < 0 || value >= nChoices)
if (value < 0 || value >= (int)nChoices)
{
return false;
}