iOS: Fix a few instances of UB (#2428)
* Fix iOS 32-bit * Fix a few invalid message sends on iOS
This commit is contained in:
parent
66aa6c945d
commit
a43a15b4a0
5 changed files with 9 additions and 8 deletions
|
|
@ -7,6 +7,7 @@ use std::{
|
|||
sync::mpsc::{self, Receiver, Sender},
|
||||
};
|
||||
|
||||
use objc::runtime::Object;
|
||||
use raw_window_handle::{RawDisplayHandle, UiKitDisplayHandle};
|
||||
|
||||
use crate::{
|
||||
|
|
@ -113,7 +114,7 @@ impl<T: 'static> EventLoop<T> {
|
|||
F: 'static + FnMut(Event<'_, T>, &RootEventLoopWindowTarget<T>, &mut ControlFlow),
|
||||
{
|
||||
unsafe {
|
||||
let application: *mut c_void = msg_send![class!(UIApplication), sharedApplication];
|
||||
let application: *mut Object = msg_send![class!(UIApplication), sharedApplication];
|
||||
assert_eq!(
|
||||
application,
|
||||
ptr::null_mut(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue