]> Repositorios git - scryer-prolog.git/commitdiff
correct misprinting of attributed variables done by printer
authorMark Thom <[email protected]>
Mon, 2 Dec 2019 04:46:04 +0000 (21:46 -0700)
committerMark Thom <[email protected]>
Mon, 2 Dec 2019 04:46:04 +0000 (21:46 -0700)
src/prolog/heap_print.rs

index 9011827a336f32b8165e8257bab8e2560ffa0fd4..8db9ff4308040eb2a5bb0c8bd7bd39d70fba5b97 100644 (file)
@@ -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,