dol diff: Loosen @ symbol match criteria

This commit is contained in:
Luke Street 2024-09-09 20:36:46 -06:00
parent 8b793b5616
commit d4f695ffc7
1 changed files with 1 additions and 3 deletions

View File

@ -1521,9 +1521,7 @@ fn symbol_name_fuzzy_eq(a: &ObjSymbol, b: &ObjSymbol) -> bool {
}
// Match e.g. @1234 and @5678
if a.name.starts_with('@') && b.name.starts_with('@') {
if let (Ok(_), Ok(_)) = (a.name[1..].parse::<u32>(), b.name[1..].parse::<u32>()) {
return true;
}
return true;
}
// Match e.g. init$1234 and init$5678
if let (Some(a_dollar), Some(b_dollar)) = (a.name.rfind('$'), b.name.rfind('$')) {