From 45255a804973d62cf78e5d389423aa3d70ff180c Mon Sep 17 00:00:00 2001 From: Nolan Darilek Date: Mon, 15 Mar 2021 13:04:38 -0500 Subject: [PATCH] Fix another possibly broken comparison. --- 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 a10830d..98c7870 100644 --- a/src/backends/av_foundation.rs +++ b/src/backends/av_foundation.rs @@ -268,7 +268,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 == 1) + Ok(is_speaking != 0) } }