mirror of
https://github.com/oSumAtrIX/free-librespot.git
synced 2025-12-19 09:54:25 +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<()> {
|
||||
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());
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue