diff options
author | Karl Williamson <khw@cpan.org> | 2020-06-11 09:22:42 -0600 |
---|---|---|
committer | Karl Williamson <khw@cpan.org> | 2022-06-02 07:08:25 -0600 |
commit | 8efcfdaa248416f943f2a053b15d86cba1b5a625 (patch) | |
tree | e79e6b62b98eab1a1266649aa160568e9cc799c5 | |
parent | 46b0a3a2ab5ef2fa5a4227db169aa07bb0d75433 (diff) | |
download | perl-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.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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++; |