From 81eba9959458295590a8bf48d2a886df8b82a035 Mon Sep 17 00:00:00 2001 From: Nolan Darilek Date: Fri, 12 Mar 2021 06:20:05 -0600 Subject: [PATCH] Add cast to (hopefully) get AppKit compiling on M1 macs. --- 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 97f6cb4..8035e26 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) + Ok(is_speaking == YES as i8) } }