From 440b20814494d20f68614246cbd0480434d42a78 Mon Sep 17 00:00:00 2001 From: "kr.angelov" Date: Wed, 22 Feb 2012 14:06:49 +0000 Subject: [PATCH] libpgf: two small fixes in the parser debugger --- src/runtime/c/pgf/parser.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/runtime/c/pgf/parser.c b/src/runtime/c/pgf/parser.c index a87c62e90..861157f50 100644 --- a/src/runtime/c/pgf/parser.c +++ b/src/runtime/c/pgf/parser.c @@ -127,7 +127,7 @@ pgf_print_production(int fid, PgfProduction prod, GuWriter *wtr, GuExn* err) } case PGF_PRODUCTION_COERCE: { PgfProductionCoerce* pcoerce = i.data; - gu_printf(wtr,err,"_[C%d]\n",pcoerce->coerce); + gu_printf(wtr,err,"_[C%d]\n",pcoerce->coerce->fid); break; } default: @@ -172,7 +172,7 @@ pgf_print_item(PgfItem* item, GuWriter* wtr, GuExn* err) } case PGF_PRODUCTION_COERCE: { PgfProductionCoerce* pcoerce = i.data; - gu_printf(wtr, err, "_[%d]; %d : ", + gu_printf(wtr, err, "_[C%d]; %d : ", pcoerce->coerce->fid, item->base->lin_idx); if (item->seq_idx == 0)