Skip to content

Commit

Permalink
glr.c: add missing cast
Browse files Browse the repository at this point in the history
Reported by psjo.
#19

* data/skeletons/glr.c (yyprocessOneStack): Here.
  • Loading branch information
akimd committed Jan 10, 2020
1 parent 04f3bfc commit 4d934b8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion data/skeletons/glr.c
Original file line number Diff line number Diff line change
Expand Up @@ -1985,7 +1985,8 @@ yyprocessOneStack (yyGLRStack* yystackp, ptrdiff_t yyk,
while (yystackp->yytops.yystates[yyk] != YY_NULLPTR)
{
yyStateNum yystate = yystackp->yytops.yystates[yyk]->yylrState;
YY_DPRINTF ((stderr, "Stack %ld Entering state %d\n", yyk, yystate));
YY_DPRINTF ((stderr, "Stack %ld Entering state %d\n",
YY_CAST (long, yyk), yystate));

YY_ASSERT (yystate != YYFINAL);

Expand Down

0 comments on commit 4d934b8

Please sign in to comment.