From d4f695ffc7c8e0e5977a328635f8191749b7b49b Mon Sep 17 00:00:00 2001 From: Luke Street Date: Mon, 9 Sep 2024 20:36:46 -0600 Subject: [PATCH] dol diff: Loosen @ symbol match criteria --- src/cmd/dol.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/cmd/dol.rs b/src/cmd/dol.rs index 99cb6f9..87e157f 100644 --- a/src/cmd/dol.rs +++ b/src/cmd/dol.rs @@ -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::(), b.name[1..].parse::()) { - 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('$')) {