diff --git a/src/windows.rs b/src/windows.rs index c97ee1e..b14f01e 100644 --- a/src/windows.rs +++ b/src/windows.rs @@ -284,13 +284,13 @@ impl Window { } pub fn get_keys(&self) -> Vec { - let mut index: u8 = 0; + let mut index: u16 = 0; let mut keys: Vec = Vec::new(); for i in self.keys.iter() { if *i { unsafe { - keys.push(mem::transmute(index)); + keys.push(mem::transmute(index as u8)); } }