From: Pascal Bart Date: Sat, 22 Sep 2001 21:43:05 +0000 (+0000) Subject: Fix line report with input_line X-Git-Tag: pre-merge-of-1-29-branch~4 X-Git-Url: https://git.saurik.com/bison.git/commitdiff_plain/577c6c84990d501ce56415d3207fb3a9379fa9d9 Fix line report with input_line --- diff --git a/src/output.c b/src/output.c index 6706af61..37e94f32 100644 --- a/src/output.c +++ b/src/output.c @@ -992,7 +992,7 @@ output_parser (const char *skel_filename, struct obstack *oout) else if (!strcmp (muscle_key, "line")) obstack_fgrow1 (oout, "%d", line + 1); else if (!strcmp (muscle_key, "input_line")) - obstack_fgrow1 (oout, "%d", lineno + 1); + obstack_fgrow1 (oout, "%d", lineno); else if (!strcmp (muscle_key, "action")) { size_t size = obstack_object_size (&action_obstack);