aboutsummaryrefslogtreecommitdiffstats
path: root/src/win32/init.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/win32/init.rs')
-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
},