diff --git a/src/duckstation-qt/qthostinterface.cpp b/src/duckstation-qt/qthostinterface.cpp index ed7340bd2..ba3ae4c0d 100644 --- a/src/duckstation-qt/qthostinterface.cpp +++ b/src/duckstation-qt/qthostinterface.cpp @@ -285,7 +285,7 @@ void QtHostInterface::onDisplayWindowMouseButtonEvent(int button, bool pressed) { DebugAssert(isOnWorkerThread()); - if (ImGui::GetCurrentContext() && (button > 0 && button <= countof(ImGuiIO::MouseDown))) + if (ImGui::GetCurrentContext() && (button > 0 && button <= static_cast(countof(ImGuiIO::MouseDown)))) { ImGuiIO& io = ImGui::GetIO(); io.MouseDown[button - 1] = pressed;