Browse Source

Fixed deallocate types

pull/81/head
Andrea Ciliberti 2 years ago
parent
commit
c2c14b949b
  1. 2
      ctru-rs/src/linear.rs

2
ctru-rs/src/linear.rs

@ -39,6 +39,6 @@ unsafe impl Allocator for LinearAllocator {
} }
unsafe fn deallocate(&self, ptr: NonNull<u8>, _layout: Layout) { unsafe fn deallocate(&self, ptr: NonNull<u8>, _layout: Layout) {
ctru_sys::linearFree(ptr.as_ptr() as *mut _); ctru_sys::linearFree(ptr.as_ptr().cast());
} }
} }

Loading…
Cancel
Save