From c5e1ea5919015e15206afa7a9f406704a8315696 Mon Sep 17 00:00:00 2001 From: Brian Schwind Date: Sat, 11 Apr 2020 16:53:25 +0900 Subject: [PATCH] Fix type-casting error for armv6 platforms --- src/host/alsa/mod.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/host/alsa/mod.rs b/src/host/alsa/mod.rs index 42f5660..1b40e53 100644 --- a/src/host/alsa/mod.rs +++ b/src/host/alsa/mod.rs @@ -1,6 +1,7 @@ extern crate alsa_sys as alsa; extern crate libc; +use self::libc::c_long; use crate::{ BackendSpecificError, BuildStreamError, ChannelCount, Data, DefaultStreamConfigError, DeviceNameError, DevicesError, PauseStreamError, PlayStreamError, SampleFormat, SampleRate, @@ -763,7 +764,7 @@ fn process_output( available_frames as alsa::snd_pcm_uframes_t, ) }; - if result == -libc::EPIPE as i64 { + if result == -libc::EPIPE as c_long { // buffer underrun // TODO: Notify the user of this. unsafe { alsa::snd_pcm_recover(stream.channel, result as i32, 0) };