Use usize for pointer size

This commit is contained in:
Marcus Thiesen 2016-03-21 10:13:28 +01:00
parent f587b375e8
commit 11e62d56d8

View file

@ -50,7 +50,7 @@ impl Sink for PulseAudioSink {
fn write(&self, data: &[i16]) -> io::Result<()> {
unsafe {
let ptr = transmute(data.as_ptr());
let bytes = data.len() as u64 * 2;
let bytes = data.len() as usize * 2;
pa_simple_write(self.0, ptr, bytes, null_mut());
};