Fix another possibly broken comparison.

This commit is contained in:
Nolan Darilek 2021-03-15 13:04:38 -05:00
parent c65c0022d8
commit 45255a8049
1 changed files with 1 additions and 1 deletions

View File

@ -268,7 +268,7 @@ impl Backend for AvFoundation {
fn is_speaking(&self) -> Result<bool, Error> {
trace!("is_speaking()");
let is_speaking: i8 = unsafe { msg_send![self.synth, isSpeaking] };
Ok(is_speaking == 1)
Ok(is_speaking != 0)
}
}