Skip to content

Commit b12a54f

Browse files
committed
utf8.c: Move declaration to first use
1 parent 6366047 commit b12a54f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

utf8.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2518,7 +2518,6 @@ Perl_utf8_to_bytes(pTHX_ U8 *s, STRLEN *lenp)
25182518
U8 * d = s = first_variant;
25192519

25202520
while (s < send) {
2521-
U8 * s1;
25222521

25232522
if (UVCHR_IS_INVARIANT(*s)) {
25242523
*d++ = *s++;
@@ -2561,7 +2560,7 @@ Perl_utf8_to_bytes(pTHX_ U8 *s, STRLEN *lenp)
25612560
* byte that will be the source for the first byte (or bytes) at
25622561
* 's' that need to be changed back. Note that s1 can expand to
25632562
* two bytes */
2564-
s1 = d;
2563+
U8 * s1 = d;
25652564
while (s >= d) {
25662565
s--;
25672566
if (! UVCHR_IS_INVARIANT(*s1)) {

0 commit comments

Comments
 (0)