mirror of
https://github.com/Noratrieb/rustv32i.git
synced 2026-01-14 13:25:01 +01:00
fix overflow
This commit is contained in:
parent
d369850db1
commit
16bd9072df
1 changed files with 1 additions and 1 deletions
|
|
@ -1459,7 +1459,7 @@ mod tests {
|
||||||
|
|
||||||
let start_time = std::time::Instant::now();
|
let start_time = std::time::Instant::now();
|
||||||
|
|
||||||
let insts = (start..=(start + CHUNK_SIZE))
|
let insts = (start..=start.saturating_add(CHUNK_SIZE))
|
||||||
.filter_map(|code| Some((code, Inst::decode_normal(code).ok()?)))
|
.filter_map(|code| Some((code, Inst::decode_normal(code).ok()?)))
|
||||||
.filter(|(_, inst)| is_inst_supposed_to_roundtrip(inst))
|
.filter(|(_, inst)| is_inst_supposed_to_roundtrip(inst))
|
||||||
.collect::<Vec<_>>();
|
.collect::<Vec<_>>();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue