MemoryCardSettings: Warning fix, use qsizetype instead of int

This commit is contained in:
Ty 2025-10-25 12:38:25 -04:00 committed by Ty
parent bd1b9ea718
commit e51e4a35fe
1 changed files with 1 additions and 1 deletions

View File

@ -138,7 +138,7 @@ void MemoryCardSettingsWidget::autoSizeUI()
void MemoryCardSettingsWidget::tryInsertCard(u32 slot, const QString& newCard)
{
// handle where the card is dragged in from explorer or something
const int lastSlashPos = std::max(newCard.lastIndexOf('/'), newCard.lastIndexOf('\\'));
const qsizetype lastSlashPos = std::max(newCard.lastIndexOf('/'), newCard.lastIndexOf('\\'));
const std::string newCardStr(
(lastSlashPos >= 0) ? newCard.mid(0, lastSlashPos).toStdString() : newCard.toStdString());
if (newCardStr.empty())