Skip to content

Commit a284efe

Browse files
committed
utf8_to_bytes_: Add const
This variable should not be being changed by the function
1 parent 6d61748 commit a284efe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

utf8.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2396,7 +2396,7 @@ Perl_utf8_to_bytes_(pTHX_ U8 **s_ptr, STRLEN *lenp)
23962396
* work there */
23972397

23982398
U8 * const s0 = *s_ptr;
2399-
U8 * const send = s0 + *lenp;
2399+
const U8 * const send = s0 + *lenp;
24002400
U8 * s = first_variant;
24012401

24022402
#ifndef EBCDIC /* The below relies on the bit patterns of UTF-8 */

0 commit comments

Comments
 (0)