mirror of
https://github.com/italicsjenga/winit-sonoma-fix.git
synced 2024-12-24 22:31:30 +11:00
Merge pull request #460 from tomaka/fix-compilation-32bits
Fix the compilation on 32bits linux
This commit is contained in:
commit
e5f888e19a
|
@ -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