From 650d1272a428d8ae436b469e1a70091a3c6ba9d6 Mon Sep 17 00:00:00 2001 From: Filipe Rodrigues Date: Tue, 12 Jan 2021 01:40:07 +0000 Subject: [PATCH] Missing missing `.` in labels. --- dcb-tools/src/decompiler/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dcb-tools/src/decompiler/main.rs b/dcb-tools/src/decompiler/main.rs index ed7397f..050046d 100644 --- a/dcb-tools/src/decompiler/main.rs +++ b/dcb-tools/src/decompiler/main.rs @@ -136,7 +136,7 @@ fn main() -> Result<(), anyhow::Error> { fn inst_target<'a>(exe: &'a dcb_exe::Exe, func: &'a Func, pos: Pos) -> impl fmt::Display + 'a { dcb_util::DisplayWrapper::new(move |f| { if let Some(label) = func.labels.get(&pos) { - return write!(f, "{}", label); + return write!(f, ".{}", label); } if let Some(func) = exe.func_table().get(pos) {