Skip to content

Commit

Permalink
fix on 32bits rust
Browse files Browse the repository at this point in the history
  • Loading branch information
gabdube committed May 11, 2017
1 parent f095e56 commit a705933
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/low/events.rs
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ unsafe extern "system" fn process_events<ID: Hash+Clone+'static>(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
}
Expand Down

0 comments on commit a705933

Please sign in to comment.