From cdee854d2e4768c2d5bfca5a972fde782c82dbe7 Mon Sep 17 00:00:00 2001 From: Tomaka17 Date: Sat, 11 Oct 2014 20:23:33 +0200 Subject: Fix bug with 64bits rustc --- src/win32/init.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/win32') 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 }, -- cgit v1.2.3