diff options
author | Mattias Andrée <maandree@operamail.com> | 2014-11-17 02:37:41 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2014-11-17 02:37:41 +0100 |
commit | 59e2da485ea82fb1ee9f6f565ba5084c41f85143 (patch) | |
tree | b8c8d110ca18c2c5b01c9b875c4945e75c1e9da0 /src/mds-kbdc/tree.c | |
parent | m (diff) | |
download | mds-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.c | 4 |
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 |