aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPierre Krieger <pierre.krieger1708@gmail.com>2015-05-21 21:31:41 +0200
committerPierre Krieger <pierre.krieger1708@gmail.com>2015-05-21 21:31:41 +0200
commit9c218992491beb4929ca3369779956415f916ce1 (patch)
tree7385d151cf00d0ea0fe240e69550c2c0e58d9722
parent0a1fe4b8aadd25a91b73c1d06a8854a2c21160a1 (diff)
downloadglutin-9c218992491beb4929ca3369779956415f916ce1.tar.gz
glutin-9c218992491beb4929ca3369779956415f916ce1.zip
Fix the compilation on 32bits linux
-rw-r--r--Cargo.toml2
-rw-r--r--src/api/x11/window.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/Cargo.toml b/Cargo.toml
index bc97170..4f73636 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -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"]
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
};