diff options
author | marxin <mliska@suse.cz> | 2019-02-20 21:59:03 +0100 |
---|---|---|
committer | marxin <mliska@suse.cz> | 2019-02-21 19:34:35 +0100 |
commit | 7de7f0ef178d2800f1ca70c15e8aff8aeb16bb8d (patch) | |
tree | e4d933f2c7ea2259b2821b2601aba224d38184f6 /platform/x11/os_x11.cpp | |
parent | a01dca79e2f7b7cb221a4c416cade4fad2941446 (diff) |
Fix all -Wtype-limits warnings.
Diffstat (limited to 'platform/x11/os_x11.cpp')
-rw-r--r-- | platform/x11/os_x11.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/x11/os_x11.cpp b/platform/x11/os_x11.cpp index 8db4635d68..879642d8f9 100644 --- a/platform/x11/os_x11.cpp +++ b/platform/x11/os_x11.cpp @@ -1743,7 +1743,7 @@ void OS_X11::handle_key_event(XKeyEvent *p_event, bool p_echo) { // is correct, but the xorg developers are // not very helpful today. - ::Time tresh = ABS(peek_event.xkey.time - xkeyevent->time); + ::Time tresh = ABSDIFF(peek_event.xkey.time, xkeyevent->time); if (peek_event.type == KeyPress && tresh < 5) { KeySym rk; XLookupString((XKeyEvent *)&peek_event, str, 256, &rk, NULL); |