Fix C89 incompatibility.

This commit is contained in:
Martin v. Löwis 2011-11-04 12:26:49 +01:00
parent b09af03b8a
commit 8ba79306d1
1 changed files with 1 additions and 1 deletions

View File

@ -613,9 +613,9 @@ PyObject *PyCodec_XMLCharRefReplaceErrors(PyObject *exc)
outp = PyUnicode_1BYTE_DATA(res);
/* generate replacement */
for (i = start, o = 0; i < end; ++i) {
ch = PyUnicode_READ_CHAR(object, i);
int digits;
int base;
ch = PyUnicode_READ_CHAR(object, i);
*outp++ = '&';
*outp++ = '#';
if (ch<10) {