QtHostInterface: Fix compiler warning

This commit is contained in:
Albert Liu 2020-07-16 20:32:42 -07:00
parent 71cef1de3f
commit 9d6325f828

View file

@ -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<int>(countof(ImGuiIO::MouseDown))))
{
ImGuiIO& io = ImGui::GetIO();
io.MouseDown[button - 1] = pressed;