Skip to content

Commit 4bab553

Browse files
committed
fix cast
1 parent 4024334 commit 4bab553

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/ra_prof/src/memory_usage.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ impl MemoryUsage {
2626
cfg_if! {
2727
if #[cfg(target_os = "linux")] {
2828
// Note: This is incredibly slow.
29-
let alloc = unsafe { libc::mallinfo() }.uordblks as u32 as isize;
29+
let alloc = unsafe { libc::mallinfo() }.uordblks as isize;
3030
MemoryUsage { allocated: Bytes(alloc) }
3131
} else {
3232
MemoryUsage { allocated: Bytes(0) }

0 commit comments

Comments
 (0)