aboutsummaryrefslogtreecommitdiffstats
path: root/src/mds-kbdc/tree.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-11-17 02:37:41 +0100
committerMattias Andrée <maandree@operamail.com>2014-11-17 02:37:41 +0100
commit59e2da485ea82fb1ee9f6f565ba5084c41f85143 (patch)
treeb8c8d110ca18c2c5b01c9b875c4945e75c1e9da0 /src/mds-kbdc/tree.c
parentm (diff)
downloadmds-59e2da485ea82fb1ee9f6f565ba5084c41f85143.tar.gz
mds-59e2da485ea82fb1ee9f6f565ba5084c41f85143.tar.bz2
mds-59e2da485ea82fb1ee9f6f565ba5084c41f85143.tar.xz
small fixes and a bunch of tests
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rw-r--r--src/mds-kbdc/tree.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mds-kbdc/tree.c b/src/mds-kbdc/tree.c
index 9f1085c..b460d04 100644
--- a/src/mds-kbdc/tree.c
+++ b/src/mds-kbdc/tree.c
@@ -232,7 +232,7 @@ void mds_kbdc_tree_free(mds_kbdc_tree_t* restrict this)
node = (mds_kbdc_tree_##LOWERCASE##_t*)this; \
fprintf(output, "%*.s(\033[01m%s\033[00m", indent, "", NOTATION); \
fprintf(output, " \033[36m(@ %zu %zu-%zu)\033[00m", \
- node->loc_line, node->loc_start, node->loc_end)
+ node->loc_line + 1, node->loc_start, node->loc_end)
/**
@@ -360,7 +360,7 @@ void mds_kbdc_tree_free(mds_kbdc_tree_t* restrict this)
#define NOTHING(NOTATION) \
fprintf(output, "%*.s(\033[01m%s\033[00m", indent, "", NOTATION); \
fprintf(output, " \033[36m(@ %zu %zu-%zu)\033[00m", \
- this->loc_line, this->loc_start, this->loc_end); \
+ this->loc_line + 1, this->loc_start, this->loc_end); \
fprintf(output, ")\n"); \
break