[tests] Fix numeric literal annotation

This commit is contained in:
Ming-Hung Tsai 2021-05-25 15:18:52 +08:00
parent 48d4fc51ed
commit 5ecae3ad88
1 changed files with 1 additions and 1 deletions

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;