summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorkr.angelov <kr.angelov@gmail.com>2013-11-22 12:26:49 +0000
committerkr.angelov <kr.angelov@gmail.com>2013-11-22 12:26:49 +0000
commit1d2786f7da2c94bbba063137b13d639f552d5f7e (patch)
tree31df091a437d1bba037c0ec56a82a02d3b543d6a /src
parent260c0dfedcd7e50368bcbd651f4c71d425af244a (diff)
bugfix in the debug mode for the parser
Diffstat (limited to 'src')
-rw-r--r--src/runtime/c/pgf/parser.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/runtime/c/pgf/parser.c b/src/runtime/c/pgf/parser.c
index 4570d2538..676e0ca29 100644
--- a/src/runtime/c/pgf/parser.c
+++ b/src/runtime/c/pgf/parser.c
@@ -1022,10 +1022,10 @@ pgf_parsing_complete(PgfParsing* ps, PgfItem* item, PgfExprProb *ep)
GuExn* err = gu_exn(NULL, type, tmp_pool);
if (tmp_ccat == NULL) {
gu_printf(out, err, "[");
- pgf_print_range(conts->state, before, out, err);
+ pgf_print_range(item->conts->state, ps->before, out, err);
gu_printf(out, err, "; C%d; %d; C%d]\n",
- conts->ccat->fid,
- conts->lin_idx,
+ item->conts->ccat->fid,
+ item->conts->lin_idx,
ccat->fid);
}
pgf_print_production(ccat->fid, prod, out, err, tmp_pool);