summaryrefslogtreecommitdiff
path: root/platform/x11/joypad_linux.cpp
diff options
context:
space:
mode:
authormarxin <mliska@suse.cz>2019-02-20 21:59:03 +0100
committermarxin <mliska@suse.cz>2019-02-21 19:34:35 +0100
commit7de7f0ef178d2800f1ca70c15e8aff8aeb16bb8d (patch)
treee4d933f2c7ea2259b2821b2601aba224d38184f6 /platform/x11/joypad_linux.cpp
parenta01dca79e2f7b7cb221a4c416cade4fad2941446 (diff)
Fix all -Wtype-limits warnings.
Diffstat (limited to 'platform/x11/joypad_linux.cpp')
-rw-r--r--platform/x11/joypad_linux.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/x11/joypad_linux.cpp b/platform/x11/joypad_linux.cpp
index 907c652ab4..7cf0a1ef1e 100644
--- a/platform/x11/joypad_linux.cpp
+++ b/platform/x11/joypad_linux.cpp
@@ -476,7 +476,7 @@ void JoypadLinux::process_joypads() {
// ev may be tainted and out of MAX_KEY range, which will cause
// joy->key_map[ev.code] to crash
- if (ev.code < 0 || ev.code >= MAX_KEY)
+ if (ev.code >= MAX_KEY)
return;
switch (ev.type) {