summaryrefslogtreecommitdiff
path: root/parser.h
diff options
context:
space:
mode:
authorFather Chrysostomos <sprout@cpan.org>2015-02-22 11:26:15 -0800
committerFather Chrysostomos <sprout@cpan.org>2015-02-22 16:37:20 -0800
commita2867f88735d49c5b668c01984acdb846d8b2e71 (patch)
tree166b07643143a6716f9a4ec73c3578e24732ea0a /parser.h
parentf266b7436d2272bf0b223187f6f07c5a7e18834c (diff)
downloadperl-a2867f88735d49c5b668c01984acdb846d8b2e71.tar.gz
parser.h: Make nexttoke unsigned
This is to avoid a compiler warning at toke.c:1912 (the assertion in S_force_next). The only values this member can contain are 0 to 5, so this change is safe. (I’ll probably change it to U8 after 5.22.)
Diffstat (limited to 'parser.h')
-rw-r--r--parser.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/parser.h b/parser.h
index 2806578703..ffc60d3cf4 100644
--- a/parser.h
+++ b/parser.h
@@ -100,7 +100,7 @@ typedef struct yy_parser {
YYSTYPE nextval[5]; /* value of next token, if any */
I32 nexttype[5]; /* type of next token */
- I32 nexttoke;
+ U32 nexttoke;
COP *saved_curcop; /* the previous PL_curcop */
char tokenbuf[256];