mirror of
https://github.com/python/cpython.git
synced 2025-10-10 00:43:41 +00:00
Fix C89 incompatibility.
This commit is contained in:
parent
b09af03b8a
commit
8ba79306d1
1 changed files with 1 additions and 1 deletions
|
@ -613,9 +613,9 @@ PyObject *PyCodec_XMLCharRefReplaceErrors(PyObject *exc)
|
||||||
outp = PyUnicode_1BYTE_DATA(res);
|
outp = PyUnicode_1BYTE_DATA(res);
|
||||||
/* generate replacement */
|
/* generate replacement */
|
||||||
for (i = start, o = 0; i < end; ++i) {
|
for (i = start, o = 0; i < end; ++i) {
|
||||||
ch = PyUnicode_READ_CHAR(object, i);
|
|
||||||
int digits;
|
int digits;
|
||||||
int base;
|
int base;
|
||||||
|
ch = PyUnicode_READ_CHAR(object, i);
|
||||||
*outp++ = '&';
|
*outp++ = '&';
|
||||||
*outp++ = '#';
|
*outp++ = '#';
|
||||||
if (ch<10) {
|
if (ch<10) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue