summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2020-06-11 09:22:42 -0600
committerKarl Williamson <khw@cpan.org>2022-06-02 07:08:25 -0600
commit8efcfdaa248416f943f2a053b15d86cba1b5a625 (patch)
treee79e6b62b98eab1a1266649aa160568e9cc799c5
parent46b0a3a2ab5ef2fa5a4227db169aa07bb0d75433 (diff)
downloadperl-8efcfdaa248416f943f2a053b15d86cba1b5a625.tar.gz
regcomp.c: Move loop declaration closer to use
Now that we have c99, the loop variable can be declared in it, instead of way before.
-rw-r--r--regcomp.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/regcomp.c b/regcomp.c
index e58e91ed0c..554041d7c9 100644
--- a/regcomp.c
+++ b/regcomp.c
@@ -1771,7 +1771,6 @@ S_get_ANYOF_cp_list_for_ssc(pTHX_ const RExC_state_t *pRExC_state,
SV* invlist = NULL;
SV* only_utf8_locale_invlist = NULL;
- unsigned int i;
const U32 n = ARG(node);
bool new_node_has_latin1 = FALSE;
const U8 flags = (inRANGE(OP(node), ANYOFH, ANYOFRb))
@@ -1830,7 +1829,7 @@ S_get_ANYOF_cp_list_for_ssc(pTHX_ const RExC_state_t *pRExC_state,
/* Add in the points from the bit map */
if (! inRANGE(OP(node), ANYOFH, ANYOFRb)) {
- for (i = 0; i < NUM_ANYOF_CODE_POINTS; i++) {
+ for (unsigned i = 0; i < NUM_ANYOF_CODE_POINTS; i++) {
if (ANYOF_BITMAP_TEST(node, i)) {
unsigned int start = i++;