From 943e5eeb35dda39be3163885bc2e01b2b70e0c7c Mon Sep 17 00:00:00 2001 From: Mark Thom Date: Sun, 1 Dec 2019 21:46:04 -0700 Subject: [PATCH] correct misprinting of attributed variables done by printer --- src/prolog/heap_print.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/prolog/heap_print.rs b/src/prolog/heap_print.rs index 9011827a..8db9ff43 100644 --- a/src/prolog/heap_print.rs +++ b/src/prolog/heap_print.rs @@ -614,7 +614,7 @@ impl<'a, Outputter: HCValueOutputter> HCPrinter<'a, Outputter> { } match addr { - Addr::AttrVar(h) => Some(format!("_{}", h + 1)), + Addr::AttrVar(h) => Some(format!("_{}", h)), Addr::HeapCell(h) | Addr::Lis(h) | Addr::Str(h) => Some(format!("_{}", h)), Addr::StackCell(fr, sc) => Some(format!("_s_{}_{}", fr, sc)), _ => None, -- 2.54.0