macos: fixup CI build

weirdly, BOOL is considered bool when I compile locally,
but in the CI:

```
error[E0308]: mismatched types
   --> window/src/os/macos/connection.rs:170:22
    |
170 |     let max_fps = if has_max_fps {
    |                      ^^^^^^^^^^^ expected `bool`, found `i8`
```

I can't explain the difference in behavior (feels like a compiler
bug?) but let's try comparing explicitly against YES
This commit is contained in:
Wez Furlong committed 2022-08-21 08:29:17 -07:00
1 parent 99391e39d2
commit f4b8028e5e
1 file changed
+1 -1
+1 -1
View File
@@ -167,7 +167,7 @@ fn nsscreen_to_screen_info(screen: *mut Object) -> ScreenInfo {
);
let has_max_fps: objc::runtime::BOOL =
unsafe { msg_send!(screen, respondsToSelector: sel!(maximumFramesPerSecond)) };
let max_fps = if has_max_fps {
let max_fps = if has_max_fps == objc::runtime::YES {
let max_fps: NSInteger = unsafe { msg_send!(screen, maximumFramesPerSecond) };
Some(max_fps as usize)
} else {