diff --git a/src/core/settings.h b/src/core/settings.h index b5aeff29b1a6b6a860ffd313380121fcd8eb3652..a8954647fde70f01044aa876d13a02a16e6ee9ce 100644 --- a/src/core/settings.h +++ b/src/core/settings.h @@ -114,8 +114,8 @@ struct Values { // System bool use_docked_mode; bool enable_nfc; - int current_user; - int language_index; + s32 current_user; + s32 language_index; // Controls std::array<std::string, NativeButton::NumButtons> buttons; diff --git a/src/yuzu/configuration/configure_system.cpp b/src/yuzu/configuration/configure_system.cpp index b4b4a4a567b986d5c93195d961a30e99156858ed..4803d43bba9c626e94d343215839517399cdbeb2 100644 --- a/src/yuzu/configuration/configure_system.cpp +++ b/src/yuzu/configuration/configure_system.cpp @@ -240,7 +240,7 @@ void ConfigureSystem::RefreshConsoleID() { void ConfigureSystem::SelectUser(const QModelIndex& index) { Settings::values.current_user = - std::clamp<std::size_t>(index.row(), 0, profile_manager->GetUserCount() - 1); + std::clamp<s32>(index.row(), 0, static_cast<s32>(profile_manager->GetUserCount() - 1)); UpdateCurrentUser();