From 915bd71daefa0c518a6495047c4919459cf0bc60 Mon Sep 17 00:00:00 2001 From: eZio Pan Date: Sat, 24 Feb 2024 13:28:37 +0800 Subject: [PATCH] output hex address --- src/generate/block.rs | 2 +- src/util.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/generate/block.rs b/src/generate/block.rs index d381ac4..d01746d 100644 --- a/src/generate/block.rs +++ b/src/generate/block.rs @@ -16,7 +16,7 @@ pub fn render(opts: &super::Options, ir: &IR, b: &Block, path: &str) -> Result String { } else if h1 != 0 { format!("0x{:02x}", h1 & 0xff) } else { - "0".to_string() + "0x0".to_string() } }