From 89d9ec0a84edf2c9c2e8d7cd4b3cf295814418ff Mon Sep 17 00:00:00 2001 From: Scott Mansell Date: Sun, 29 Jan 2023 14:54:41 +1300 Subject: [PATCH] Fix warning --- Source/Core/DolphinQt/MainWindow.cpp | 4 ++-- Source/Core/DolphinQt/MainWindow.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Source/Core/DolphinQt/MainWindow.cpp b/Source/Core/DolphinQt/MainWindow.cpp index f4d52c0fa5..59fc19f6a3 100644 --- a/Source/Core/DolphinQt/MainWindow.cpp +++ b/Source/Core/DolphinQt/MainWindow.cpp @@ -1383,7 +1383,7 @@ void MainWindow::SetStateSlot(int slot) void MainWindow::IncrementSelectedStateSlot() { - int state_slot = m_state_slot + 1; + u32 state_slot = m_state_slot + 1; if (state_slot > State::NUM_STATES) state_slot = 1; m_menu_bar->SetStateSlot(state_slot); @@ -1391,7 +1391,7 @@ void MainWindow::IncrementSelectedStateSlot() void MainWindow::DecrementSelectedStateSlot() { - int state_slot = m_state_slot - 1; + u32 state_slot = m_state_slot - 1; if (state_slot < 1) state_slot = State::NUM_STATES; m_menu_bar->SetStateSlot(state_slot); diff --git a/Source/Core/DolphinQt/MainWindow.h b/Source/Core/DolphinQt/MainWindow.h index 953b6b1811..fde91a8ae2 100644 --- a/Source/Core/DolphinQt/MainWindow.h +++ b/Source/Core/DolphinQt/MainWindow.h @@ -217,7 +217,7 @@ private: bool m_exit_requested = false; bool m_fullscreen_requested = false; bool m_is_screensaver_inhibited = false; - int m_state_slot = 1; + u32 m_state_slot = 1; std::unique_ptr m_pending_boot; ControllersWindow* m_controllers_window = nullptr;