diff options
author | Steven Moreland <smoreland@google.com> | 2020-01-07 13:45:21 -0800 |
---|---|---|
committer | Dan Willemsen <dwillemsen@google.com> | 2020-01-11 00:20:35 +0000 |
commit | 1d10424990b3d0f5814134af690520d3eb8c2801 (patch) | |
tree | 5f6afb2531cf28345456e03fae2ae6ec8f660525 | |
parent | c176d93609b46a4e67ae3c4195c447f9a8a26b30 (diff) | |
download | bison-1d10424990b3d0f5814134af690520d3eb8c2801.tar.gz |
bison: fix glr parser on 32-bit builds.
Bison has switched 'yyk' variables to be ptrdiff_t instead of size_t and
is printing them with %ld. We could switch this to %td, but in order to
be consistent with the rest of this template, adding a cast.
Bug: 31194194
Test: builds
Change-Id: Ia328093604d590b557b27e648967b563b059183e
-rw-r--r-- | data/skeletons/glr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/data/skeletons/glr.c b/data/skeletons/glr.c index 467f7db9..945ff0ac 100644 --- a/data/skeletons/glr.c +++ b/data/skeletons/glr.c @@ -1985,7 +1985,7 @@ 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); |