From d6f22dc7977a3ee413f59b2dd21e0cb22dfc8948 Mon Sep 17 00:00:00 2001 From: Fenrir Date: Fri, 16 Feb 2024 19:19:19 -0700 Subject: [PATCH] Use .cast() in more places --- ctru-rs/src/applets/swkbd.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ctru-rs/src/applets/swkbd.rs b/ctru-rs/src/applets/swkbd.rs index c888743..5098c89 100644 --- a/ctru-rs/src/applets/swkbd.rs +++ b/ctru-rs/src/applets/swkbd.rs @@ -799,7 +799,7 @@ impl SoftwareKeyboard { aptLaunchLibraryApplet( APPID_SOFTWARE_KEYBOARD, - swkbd as *mut _ as *mut _, + (swkbd as *mut SwkbdState).cast(), std::mem::size_of::(), swkbd_shared_mem_handle, ); @@ -920,7 +920,7 @@ impl SoftwareKeyboard { envGetAptAppId(), sender, APTCMD_MESSAGE, - swkbd as *mut _ as *mut _, + (swkbd as *mut SwkbdState).cast(), std::mem::size_of::() as _, 0, )