correct type

Co-authored-by: Komari Spaghetti <3759175+Hejsil@users.noreply.github.com>
This commit is contained in:
Temmie 2021-09-28 03:04:17 +02:00 committed by GitHub
parent 21c46f2a1c
commit 5bc3334fd3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);