diff options
author | Karl Williamson <khw@cpan.org> | 2020-08-19 19:49:15 -0600 |
---|---|---|
committer | Karl Williamson <khw@cpan.org> | 2020-08-19 19:50:54 -0600 |
commit | 368fbfb2f2557bb955df540800527dd46257f9e7 (patch) | |
tree | 8da64f9040894d2aeba7d39be0a05c87389f8ceb | |
parent | 8225553549ce33b54d07437afa96c60cc5329c76 (diff) | |
download | perl-368fbfb2f2557bb955df540800527dd46257f9e7.tar.gz |
regcomp.c: Silence compiler warning
This commit goes back to using av_top_index to silence the
signed/unsigned comparison warning. Other methods could have been used,
but the signed variable is actually used to fetch the array index, so I
decided to go this route.
-rw-r--r-- | regcomp.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -25344,7 +25344,7 @@ S_handle_names_wildcard(pTHX_ const char * wname, /* wildcard name to match */ * "PREFIX-code_point". The prefixes and the code point limits of each * were returned to us in the array 'algorithmic_names' from data in * lib/unicore/Name.pm. 'code_point' in the name is expressed in hex. */ - for (i = 0; i < av_count((AV *) algorithmic_names); i++) { + for (i = 0; i <= av_top_index((AV *) algorithmic_names); i++) { IV j; /* Each element of the array is a hash, giving the details for the |