From 5bc3334fd348ab15636afc4af4a57f181e679ad6 Mon Sep 17 00:00:00 2001 From: Temmie <64474244+Slemmie@users.noreply.github.com> Date: Tue, 28 Sep 2021 03:04:17 +0200 Subject: [PATCH] correct type Co-authored-by: Komari Spaghetti <3759175+Hejsil@users.noreply.github.com> --- src/x11_window.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/x11_window.c b/src/x11_window.c index abe3f68f..88d290a4 100644 --- a/src/x11_window.c +++ b/src/x11_window.c @@ -1271,7 +1271,7 @@ static void processEvent(XEvent *event) // (the server never sends a timestamp of zero) // NOTE: Timestamp difference is compared to handle wrap-around Time diff = event->xkey.time - window->x11.keyPressTimes[keycode]; - if (diff == event->xkey.time || (diff > 0 && diff < (1 << 30))) + if (diff == event->xkey.time || (diff > 0 && diff < ((Time)1 << 31))) { if (keycode) _glfwInputKey(window, key, keycode, GLFW_PRESS, mods);