Skip to content

Commit

Permalink
Merge pull request rust-windowing#460 from tomaka/fix-compilation-32bits
Browse files Browse the repository at this point in the history
Fix the compilation on 32bits linux
  • Loading branch information
tomaka committed May 21, 2015
2 parents 0a1fe4b + 9c21899 commit e5f888e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -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"]
Expand Down
2 changes: 1 addition & 1 deletion src/api/x11/window.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
};

Expand Down

0 comments on commit e5f888e

Please sign in to comment.