From bd8e2ee20a17d786dd7fd2b858d29c065be2310f Mon Sep 17 00:00:00 2001 From: Nolan Darilek Date: Mon, 15 Mar 2021 13:02:32 -0500 Subject: [PATCH] Compare against ObjC NO to ensure correctness. --- src/backends/appkit.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backends/appkit.rs b/src/backends/appkit.rs index 8035e26..2a07450 100644 --- a/src/backends/appkit.rs +++ b/src/backends/appkit.rs @@ -198,7 +198,7 @@ impl Backend for AppKit { fn is_speaking(&self) -> Result { let is_speaking: i8 = unsafe { msg_send![self.0, isSpeaking] }; - Ok(is_speaking == YES as i8) + Ok(is_speaking != NO as i8) } }