File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -94,15 +94,15 @@ unsafe impl GlobalAlloc for MiMalloc {
9494
9595 #[ inline]
9696 unsafe fn dealloc ( & self , ptr : * mut u8 , _layout : Layout ) {
97- mi_free ( ptr as * const c_void ) ;
97+ mi_free ( ptr as * mut c_void ) ;
9898 }
9999
100100 #[ inline]
101101 unsafe fn realloc ( & self , ptr : * mut u8 , layout : Layout , new_size : usize ) -> * mut u8 {
102102 if layout. align ( ) <= MIN_ALIGN && layout. align ( ) <= layout. size ( ) {
103- mi_realloc ( ptr as * const c_void , new_size) as * mut u8
103+ mi_realloc ( ptr as * mut c_void , new_size) as * mut u8
104104 } else {
105- mi_realloc_aligned ( ptr as * const c_void , new_size, layout. align ( ) ) as * mut u8
105+ mi_realloc_aligned ( ptr as * mut c_void , new_size, layout. align ( ) ) as * mut u8
106106 }
107107 }
108108}
You can’t perform that action at this time.
0 commit comments