From 1fcfa6b2bdafb797175d0c3a1be2bca700d4c260 Mon Sep 17 00:00:00 2001 From: Miquel Sabaté Solà Date: Tue, 14 Jul 2026 07:36:14 +0200 Subject: Generalize MemoryRange into Range MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Leading up to also having address ranges exported to callers, which should be using the same infrastructure. Signed-off-by: Miquel Sabaté Solà --- crates/nasm/src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'crates') diff --git a/crates/nasm/src/main.rs b/crates/nasm/src/main.rs index 7160137..e8f56f6 100644 --- a/crates/nasm/src/main.rs +++ b/crates/nasm/src/main.rs @@ -225,10 +225,10 @@ fn save_memory_stats(source: &SourceInfo, memory: &mut MemoryResult, has_working for mr in ranges { if mr.range.start + 1 == mr.range.end { - if let Err(e) = writeln!(file, "{}: {}", mr.range_to_human(), mr.name) { + if let Err(e) = writeln!(file, "{}: {}", mr.to_human(), mr.name) { return die(format!("could not write memory.txt file: {e}")); } - } else if let Err(e) = writeln!(file, "{}: {}", mr.range_to_human(), mr.name) { + } else if let Err(e) = writeln!(file, "{}: {}", mr.to_human(), mr.name) { return die(format!("could not write memory.txt file: {e}")); } } -- cgit v1.2.3