X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/d4fca427636f15eb952974ff04e4fb046428440a..a6b2f4fc020fe6e464f4a445a7851825d3d57e4d:/data/glr.c diff --git a/data/glr.c b/data/glr.c index 9b525f47..148af2b6 100644 --- a/data/glr.c +++ b/data/glr.c @@ -1727,10 +1727,10 @@ yyreportTree (yySemanticOption* yyx, int yyindent) { if (yystates[yyi-1]->yyposn+1 > yystates[yyi]->yyposn) YYFPRINTF (stderr, "%*s%s \n", yyindent+2, "", - yytokenName (yystos[yystates[yyi-1]->yylrState])); + yytokenName (yystos[yystates[yyi]->yylrState])); else YYFPRINTF (stderr, "%*s%s \n", yyindent+2, "", - yytokenName (yystos[yystates[yyi-1]->yylrState]), + yytokenName (yystos[yystates[yyi]->yylrState]), (unsigned long int) (yystates[yyi-1]->yyposn + 1), (unsigned long int) yystates[yyi]->yyposn); }