(Windows) Fixed an MSVC compiler warning

This commit is contained in:
Leon Styhre 2023-08-04 18:52:14 +02:00
parent 2059ba3eeb
commit dbecb22cc7

View file

@ -453,7 +453,7 @@ void GuiScraperSearch::onSearchDone(std::vector<ScraperSearchResult>& results)
const std::string entryText {
results.size() > 1 ? "Result entry " + std::to_string(i) + ": " : ""};
if (results[i].md5Hash == mMD5Hash) {
mAutomaticModeGameEntry = i;
mAutomaticModeGameEntry = static_cast<int>(i);
LOG(LogDebug)
<< "GuiScraperSearch::onSearchDone(): " << entryText
<< "Perfect match, MD5 digest in server response identical to file hash";