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()); } }