aboutsummaryrefslogtreecommitdiffstats
path: root/src/win32
diff options
context:
space:
mode:
authorTomaka17 <pierre.krieger1708@gmail.com>2014-10-11 20:23:33 +0200
committerTomaka17 <pierre.krieger1708@gmail.com>2014-10-11 20:23:33 +0200
commitcdee854d2e4768c2d5bfca5a972fde782c82dbe7 (patch)
tree76699d9d02b45f09e4dc548f8ed43da5bc429226 /src/win32
parentcb32e64b72e9342d30cde694ab25234a263cab59 (diff)
downloadglutin-cdee854d2e4768c2d5bfca5a972fde782c82dbe7.tar.gz
glutin-cdee854d2e4768c2d5bfca5a972fde782c82dbe7.zip
Fix bug with 64bits rustc
Diffstat (limited to 'src/win32')
-rw-r--r--src/win32/init.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/win32/init.rs b/src/win32/init.rs
index e50fc5d..bb3f53b 100644
--- a/src/win32/init.rs
+++ b/src/win32/init.rs
@@ -440,7 +440,7 @@ extern "stdcall" fn callback(window: ffi::HWND, msg: ffi::UINT,
ffi::WM_CHAR => {
use std::mem;
use events::ReceivedCharacter;
- let chr: char = unsafe { mem::transmute(wparam) };
+ let chr: char = unsafe { mem::transmute(wparam as u32) };
send_event(window, ReceivedCharacter(chr));
0
},