Fix bug with 64bits rustc

This commit is contained in:
Tomaka17 2014-10-11 20:23:33 +02:00
parent cb32e64b72
commit cdee854d2e

View file

@ -440,7 +440,7 @@ extern "stdcall" fn callback(window: ffi::HWND, msg: ffi::UINT,
ffi::WM_CHAR => { ffi::WM_CHAR => {
use std::mem; use std::mem;
use events::ReceivedCharacter; use events::ReceivedCharacter;
let chr: char = unsafe { mem::transmute(wparam) }; let chr: char = unsafe { mem::transmute(wparam as u32) };
send_event(window, ReceivedCharacter(chr)); send_event(window, ReceivedCharacter(chr));
0 0
}, },