diff options
author | tomaka <pierre.krieger1708@gmail.com> | 2015-11-30 22:44:58 +0100 |
---|---|---|
committer | tomaka <pierre.krieger1708@gmail.com> | 2015-11-30 22:44:58 +0100 |
commit | 5b819eda9ab682e06bfbabe64ce52bc5444b7608 (patch) | |
tree | f75659bda3393f44acfb2e4351e97466230c87ad | |
parent | 6a3ee2af759cf803d787cf6dcbafcdcc4e0243cd (diff) | |
parent | 32ed86a976c585e238e9ccfcc642e4ac70a27710 (diff) | |
download | glutin-5b819eda9ab682e06bfbabe64ce52bc5444b7608.tar.gz glutin-5b819eda9ab682e06bfbabe64ce52bc5444b7608.zip |
Merge pull request #665 from antrik/fix-cast_32bit-upstream
Fix compilation for 32 bit targets
-rw-r--r-- | src/api/x11/window.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/api/x11/window.rs b/src/api/x11/window.rs index d82c5dd..507b202 100644 --- a/src/api/x11/window.rs +++ b/src/api/x11/window.rs @@ -8,6 +8,7 @@ use std::cell::Cell; use std::sync::atomic::AtomicBool; use std::collections::VecDeque; use std::sync::{Arc, Mutex}; +use std::os::raw::c_long; use Api; use ContextError; @@ -539,7 +540,7 @@ impl Window { // This first `long` is the action; `1` means add/set following property. data.set_long(0, 1); // This second `long` is the property to set (fullscreen) - data.set_long(1, fullscreen_atom as i64); + data.set_long(1, fullscreen_atom as c_long); data } }; |