From 9c218992491beb4929ca3369779956415f916ce1 Mon Sep 17 00:00:00 2001 From: Pierre Krieger Date: Thu, 21 May 2015 21:31:41 +0200 Subject: Fix the compilation on 32bits linux --- src/api/x11/window.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/api/x11') diff --git a/src/api/x11/window.rs b/src/api/x11/window.rs index 4582c3e..38838f5 100644 --- a/src/api/x11/window.rs +++ b/src/api/x11/window.rs @@ -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 }; -- cgit v1.2.3