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
|
|
@ -374,7 +374,7 @@ pub trait NSStringRust: Sized {
|
|||
|
||||
impl NSStringRust for id {
|
||||
unsafe fn initWithUTF8String_(self, c_string: *const c_char) -> id {
|
||||
msg_send![self, initWithUTF8String: c_string as id]
|
||||
msg_send![self, initWithUTF8String: c_string]
|
||||
}
|
||||
|
||||
unsafe fn stringByAppendingString_(self, other: id) -> id {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue