We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 196c003 commit e101610Copy full SHA for e101610
objdiff-core/src/arch/arm.rs
@@ -199,7 +199,7 @@ impl Arch for ArchArm {
199
.unwrap_or(&fallback_mappings);
200
let first_mapping_idx = mapping_symbols
201
.binary_search_by_key(&start_addr, |x| x.address)
202
- .unwrap_or_else(|idx| idx - 1);
+ .unwrap_or_else(|idx| idx.saturating_sub(1));
203
let mut mode = mapping_symbols[first_mapping_idx].mapping;
204
205
let mut mappings_iter = mapping_symbols
0 commit comments