Browse Source

Use .cast() in more places

pull/157/head
Fenrir 10 months ago
parent
commit
d6f22dc797
  1. 4
      ctru-rs/src/applets/swkbd.rs

4
ctru-rs/src/applets/swkbd.rs

@ -799,7 +799,7 @@ impl SoftwareKeyboard { @@ -799,7 +799,7 @@ impl SoftwareKeyboard {
aptLaunchLibraryApplet(
APPID_SOFTWARE_KEYBOARD,
swkbd as *mut _ as *mut _,
(swkbd as *mut SwkbdState).cast(),
std::mem::size_of::<SwkbdState>(),
swkbd_shared_mem_handle,
);
@ -920,7 +920,7 @@ impl SoftwareKeyboard { @@ -920,7 +920,7 @@ impl SoftwareKeyboard {
envGetAptAppId(),
sender,
APTCMD_MESSAGE,
swkbd as *mut _ as *mut _,
(swkbd as *mut SwkbdState).cast(),
std::mem::size_of::<SwkbdState>() as _,
0,
)

Loading…
Cancel
Save