mirror of
https://github.com/italicsjenga/winit-sonoma-fix.git
synced 2024-12-23 22:01:31 +11:00
Fix the compilation on 32bits linux
This commit is contained in:
parent
0a1fe4b8aa
commit
9c21899249
|
@ -1,6 +1,6 @@
|
|||
[package]
|
||||
name = "glutin"
|
||||
version = "0.1.5"
|
||||
version = "0.1.6"
|
||||
authors = ["tomaka <pierre.krieger1708@gmail.com>"]
|
||||
description = "Cross-plaform OpenGL context provider."
|
||||
keywords = ["windowing", "opengl"]
|
||||
|
|
|
@ -202,7 +202,7 @@ impl<'a> Iterator for PollEventsIterator<'a> {
|
|||
(self.window.x.display.xlib.XKeycodeToKeysym)(self.window.x.display.display, event.keycode as ffi::KeyCode, 0)
|
||||
};
|
||||
|
||||
if (ffi::XK_KP_Space as u64 <= keysym) && (keysym <= ffi::XK_KP_9 as u64) {
|
||||
if (ffi::XK_KP_Space as libc::c_ulong <= keysym) && (keysym <= ffi::XK_KP_9 as libc::c_ulong) {
|
||||
keysym = kp_keysym
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue