From c2c14b949b213456440779570b56914675c2f560 Mon Sep 17 00:00:00 2001 From: Andrea Ciliberti Date: Wed, 23 Nov 2022 16:27:06 +0100 Subject: [PATCH] Fixed deallocate types --- ctru-rs/src/linear.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ctru-rs/src/linear.rs b/ctru-rs/src/linear.rs index b9ee0e4..a913f27 100644 --- a/ctru-rs/src/linear.rs +++ b/ctru-rs/src/linear.rs @@ -39,6 +39,6 @@ unsafe impl Allocator for LinearAllocator { } unsafe fn deallocate(&self, ptr: NonNull, _layout: Layout) { - ctru_sys::linearFree(ptr.as_ptr() as *mut _); + ctru_sys::linearFree(ptr.as_ptr().cast()); } }