We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b8fe3b6 commit 51664c1Copy full SHA for 51664c1
Python/codecs.c
@@ -954,9 +954,9 @@ PyObject *PyCodec_XMLCharRefReplaceErrors(PyObject *exc)
954
*/
955
*outp++ = '&';
956
*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);
+ const Py_UCS1 *digit_end = outp + n_decimal_digits_for_codepoint(ch);
+ for (Py_UCS1 *p_digit = digit_end - 1; p_digit >= outp; --p_digit) {
+ *p_digit = '0' + (ch % 10);
960
ch /= 10;
961
}
962
assert(ch == 0);
0 commit comments