summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2020-08-19 19:49:15 -0600
committerKarl Williamson <khw@cpan.org>2020-08-19 19:50:54 -0600
commit368fbfb2f2557bb955df540800527dd46257f9e7 (patch)
tree8da64f9040894d2aeba7d39be0a05c87389f8ceb
parent8225553549ce33b54d07437afa96c60cc5329c76 (diff)
downloadperl-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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/regcomp.c b/regcomp.c
index 3435946539..e5a85f5fbb 100644
--- a/regcomp.c
+++ b/regcomp.c
@@ -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