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 {
94
94
95
95
#[ inline]
96
96
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 ) ;
98
98
}
99
99
100
100
#[ inline]
101
101
unsafe fn realloc ( & self , ptr : * mut u8 , layout : Layout , new_size : usize ) -> * mut u8 {
102
102
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
104
104
} 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
106
106
}
107
107
}
108
108
}
You can’t perform that action at this time.
0 commit comments