Skip to content

Commit 51664c1

Browse files
committed
post-merge
1 parent b8fe3b6 commit 51664c1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Python/codecs.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -954,9 +954,9 @@ PyObject *PyCodec_XMLCharRefReplaceErrors(PyObject *exc)
954954
*/
955955
*outp++ = '&';
956956
*outp++ = '#';
957-
Py_UCS1 *digit_end = outp + n_decimal_digits_for_codepoint(ch);
958-
for (Py_UCS1 *digitp = digit_end - 1; digitp >= outp; --digitp) {
959-
*digitp = '0' + (ch % 10);
957+
const Py_UCS1 *digit_end = outp + n_decimal_digits_for_codepoint(ch);
958+
for (Py_UCS1 *p_digit = digit_end - 1; p_digit >= outp; --p_digit) {
959+
*p_digit = '0' + (ch % 10);
960960
ch /= 10;
961961
}
962962
assert(ch == 0);

0 commit comments

Comments
 (0)