From 9558f79b2d917c354f51309abcfc564fc6024801 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Tue, 5 Sep 2023 08:34:52 -0700 Subject: [PATCH] pspp-dump-sav: Number variables in cases starting from 1. The variables are numbered starting from 1 elsewhere in the output, so they should be in the cases as well. Bug #64621. Thanks to Daniel for reporting this bug. --- utilities/pspp-dump-sav.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utilities/pspp-dump-sav.c b/utilities/pspp-dump-sav.c index 05b89b52ca..47c6aa83e4 100644 --- a/utilities/pspp-dump-sav.c +++ b/utilities/pspp-dump-sav.c @@ -1291,7 +1291,7 @@ read_simple_compressed_data (struct sfm_reader *r, int max_cases) } opcode = opcodes[opcode_idx]; printf ("%08llx: variable %d: opcode %d: ", - opcode_ofs + opcode_idx, i, opcode); + opcode_ofs + opcode_idx, i + 1, opcode); switch (opcode) { -- 2.30.2