Dimension index is actually a word.
[pspp] / dump.c
diff --git a/dump.c b/dump.c
index 158caace62ca1ccf344efa3e00097bdcb1eb9502..f478131555e2ef126837096f65f4a292b2d02741 100644 (file)
--- a/dump.c
+++ b/dump.c
@@ -388,9 +388,11 @@ dump_dim(void)
     match_u32_assert(2);
   if (!match_byte(0))
     match_byte_assert(1);
-  get_u32();
-  match_byte(0);
-  match_byte(0);
+  if (!match_byte(0))
+    match_byte_assert(1);
+  match_byte_assert(1);
+  static int dim_indx = 0;
+  match_u32_assert(dim_indx++);
   n_categories = get_u32();
   printf("%d nested categories\n", n_categories);