diff options
| author | Scott Mansell <phiren@gmail.com> | 2023-01-29 14:54:41 +1300 |
|---|---|---|
| committer | Scott Mansell <phiren@gmail.com> | 2023-01-31 19:41:24 +1300 |
| commit | 89d9ec0a84edf2c9c2e8d7cd4b3cf295814418ff (patch) | |
| tree | ad8f8f449f8a3ed3b97d0ee6d87c7d2990203c45 | |
| parent | b007b8e104fbf57bc5d92bc94ca7eb997edc6332 (diff) | |
Fix warning
| -rw-r--r-- | Source/Core/DolphinQt/MainWindow.cpp | 4 | ||||
| -rw-r--r-- | 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<BootParameters> m_pending_boot; ControllersWindow* m_controllers_window = nullptr; |
