From fb7f1dddfcf9d734e4d6eeadaf0589135ee5193d Mon Sep 17 00:00:00 2001 From: Nolan Darilek Date: Mon, 15 Mar 2021 14:02:05 -0500 Subject: [PATCH] *sigh* Fix stupid M1/ARM casting issue. I hate Apple. --- src/backends/av_foundation.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backends/av_foundation.rs b/src/backends/av_foundation.rs index 45a6fbe..68f95c9 100644 --- a/src/backends/av_foundation.rs +++ b/src/backends/av_foundation.rs @@ -269,7 +269,7 @@ impl Backend for AvFoundation { fn is_speaking(&self) -> Result { trace!("is_speaking()"); let is_speaking: i8 = unsafe { msg_send![self.synth, isSpeaking] }; - Ok(is_speaking != NO) + Ok(is_speaking != NO as i8) } }