From a7059333b181b29883b74d2b0729748c303cb3f1 Mon Sep 17 00:00:00 2001 From: gdube Date: Thu, 11 May 2017 12:03:42 -0400 Subject: [PATCH] fix on 32bits rust --- src/low/events.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/low/events.rs b/src/low/events.rs index 416f1f29..c5092b27 100644 --- a/src/low/events.rs +++ b/src/low/events.rs @@ -153,7 +153,7 @@ unsafe extern "system" fn process_events(hwnd: HWND, msg let nmdr: &NMHDR = mem::transmute(l); if let Some(id) = inner.inner_id_from_handle( &AnyHandle::HWND(nmdr.hwndFrom) ) { let control_type = (&mut *inner.controls.get(&id).expect("Could not find a control with with the specified type ID").as_ptr()).control_type(); - parse_notify(id, control_type, nmdr.code as u64) + parse_notify(id, control_type, nmdr.code as WPARAM) } else { None }