We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3fa59e2 commit 9b7ba69Copy full SHA for 9b7ba69
1 file changed
zjit/src/distribution.rs
@@ -89,7 +89,7 @@ impl<T: Copy + PartialEq + Default + std::fmt::Debug, const N: usize> Distributi
89
assert!(first_count >= count, "First count should be the largest");
90
}
91
92
- let num_seen = dist.counts.iter().map(|&c| c as usize).sum::<usize>() + dist.other as usize;
+ let num_seen = dist.counts.iter().map(|&c| usize::from(c)).sum::<usize>() + usize::from(dist.other);
93
let kind = if dist.other == 0 {
94
// Seen <= N types total
95
if dist.counts[0] == 0 {
0 commit comments