From b573a161a9474e85a420a00f533a38e55afda720 Mon Sep 17 00:00:00 2001 From: Pierre Krieger Date: Sun, 19 Jul 2015 15:00:38 +0200 Subject: Fix the windows build --- src/api/win32/event.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/api/win32') diff --git a/src/api/win32/event.rs b/src/api/win32/event.rs index 4c8f4f3..6fbde81 100644 --- a/src/api/win32/event.rs +++ b/src/api/win32/event.rs @@ -2,7 +2,7 @@ use events::VirtualKeyCode; use winapi; pub fn vkeycode_to_element(code: winapi::WPARAM) -> Option { - match code { + match code as i32 { //winapi::VK_LBUTTON => Some(VirtualKeyCode::Lbutton), //winapi::VK_RBUTTON => Some(VirtualKeyCode::Rbutton), //winapi::VK_CANCEL => Some(VirtualKeyCode::Cancel), -- cgit v1.2.3