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

Loading…
Cancel
Save