Various warning fixes
This commit is contained in:
1 parent
3c910782ca
commit
701edb335a
28 files changed
+142
-137
No files matched your search
@@ -150,7 +150,7 @@ void DRMHostInterface::PollEvDevKeyboards()
|
||||
|
||||
const bool pressed = (ev.value == 1);
|
||||
const HostKeyCode code = static_cast<HostKeyCode>(ev.code);
|
||||
if (code >= 0 && code < countof(ImGuiIO::KeysDown))
|
||||
if (static_cast<unsigned>(code) < countof(ImGuiIO::KeysDown))
|
||||
ImGui::GetIO().KeysDown[code] = pressed;
|
||||
|
||||
HandleHostKeyEvent(code, pressed);
|
||||
|
||||
Reference in new issue
Block a user