Skip to content

Commit 5137fe1

Browse files
committed
utf8_to_bytes: Rename variable
The new name, s0, is used in more other places for this meaning, and is more descriptive.
1 parent 774e86d commit 5137fe1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

utf8.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2393,8 +2393,8 @@ Perl_utf8_to_bytes(pTHX_ U8 *s, STRLEN *lenp)
23932393
/* Nothing before 'first_variant' needs to be changed, so start the real
23942394
* work there */
23952395

2396-
U8 * const save = s;
2397-
U8 * const send = s + *lenp;
2396+
U8 * const s0 = s;
2397+
U8 * const send = s0 + *lenp;
23982398
s = first_variant;
23992399

24002400
#ifndef EBCDIC /* The below relies on the bit patterns of UTF-8 */
@@ -2541,9 +2541,9 @@ Perl_utf8_to_bytes(pTHX_ U8 *s, STRLEN *lenp)
25412541

25422542
/* Success! */
25432543
*d = '\0';
2544-
*lenp = d - save;
2544+
*lenp = d - s0;
25452545

2546-
return save;
2546+
return s0;
25472547

25482548
cant_convert: ;
25492549

0 commit comments

Comments
 (0)