Skip to content

Commit 9b7ba69

Browse files
committed
.
1 parent 3fa59e2 commit 9b7ba69

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

zjit/src/distribution.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ impl<T: Copy + PartialEq + Default + std::fmt::Debug, const N: usize> Distributi
8989
assert!(first_count >= count, "First count should be the largest");
9090
}
9191
}
92-
let num_seen = dist.counts.iter().map(|&c| c as usize).sum::<usize>() + dist.other as usize;
92+
let num_seen = dist.counts.iter().map(|&c| usize::from(c)).sum::<usize>() + usize::from(dist.other);
9393
let kind = if dist.other == 0 {
9494
// Seen <= N types total
9595
if dist.counts[0] == 0 {

0 commit comments

Comments
 (0)