summaryrefslogtreecommitdiff
path: root/parser.h
diff options
context:
space:
mode:
authorDavid Mitchell <davem@iabyn.com>2019-09-20 11:11:36 +0100
committerDavid Mitchell <davem@iabyn.com>2019-09-23 14:42:00 +0100
commite615875676e357cae7ff37441ffc2d44f0daa94e (patch)
tree6912c5633cff265eaa0d20a5ab7f2372fe67934a /parser.h
parentf417cfa90670b17255b02c7dc1a88924c102479f (diff)
downloadperl-e615875676e357cae7ff37441ffc2d44f0daa94e.tar.gz
Signatures: change param count from IV to UV
For some reason I was storing the counts of sub signature parameters and optional parameters as signed ints. Since these can never be negative, change them to UV instead.
Diffstat (limited to 'parser.h')
-rw-r--r--parser.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/parser.h b/parser.h
index 19c5c63ad3..4fa490a190 100644
--- a/parser.h
+++ b/parser.h
@@ -114,8 +114,8 @@ typedef struct yy_parser {
bool sig_seen; /* the currently parsing sub has a signature */
/* these are valid while parsing a subroutine signature */
- IV sig_elems; /* number of signature elements seen so far */
- IV sig_optelems; /* number of optional signature elems seen */
+ UV sig_elems; /* number of signature elements seen so far */
+ UV sig_optelems; /* number of optional signature elems seen */
char sig_slurpy; /* the sigil of the slurpy var (or null) */
bool recheck_utf8_validity;