Skip to content

Commit e1a71e7

Browse files
committed
[jemalloc] set correct excess in realloc_excess
1 parent d16c140 commit e1a71e7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/liballoc_jemalloc/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ mod contents {
228228
}
229229

230230
let flags = align_to_flags(new_align);
231-
let ptr = rallocx(ptr as *mut c_void, new_size, flags) as usize;
231+
let ptr = rallocx(ptr as *mut c_void, new_size, flags) as *mut u8;
232232
let alloc_size = sallocx(ptr as *mut c_void, flags);
233233
if ptr.is_null() {
234234
let layout = Layout::from_size_align_unchecked(new_size, new_align);

0 commit comments

Comments
 (0)