mirror of
https://github.com/librespot-org/librespot.git
synced 2024-12-18 17:11:53 +00:00
Use usize for pointer size
This commit is contained in:
parent
f587b375e8
commit
11e62d56d8
1 changed files with 1 additions and 1 deletions
|
@ -50,7 +50,7 @@ impl Sink for PulseAudioSink {
|
||||||
fn write(&self, data: &[i16]) -> io::Result<()> {
|
fn write(&self, data: &[i16]) -> io::Result<()> {
|
||||||
unsafe {
|
unsafe {
|
||||||
let ptr = transmute(data.as_ptr());
|
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());
|
pa_simple_write(self.0, ptr, bytes, null_mut());
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue