[tests] Fix numeric literal annotation

This commit is contained in:
Ming-Hung Tsai committed 2021-05-28 03:19:42 +08:00
1 parent 48d4fc51ed
commit 5ecae3ad88
1 file changed
+1 -1
+1 -1
View File
@@ -67,7 +67,7 @@ impl XmlGen for CacheGen {
v.mappings_b()?;
{
let nr_resident = (self.nr_cache_blocks * 100 as u32) / (self.percent_resident as u32);
let nr_resident = (self.nr_cache_blocks * 100u32) / (self.percent_resident as u32);
let mut used = HashSet::new();
for n in 0..nr_resident {
let mut oblock = 0u64;