summaryrefslogtreecommitdiffstats
path: root/Python/codecs.c
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2011-11-04 11:26:49 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2011-11-04 11:26:49 (GMT)
commit8ba79306d102cbe969127ff6034defff9c8bb6ec (patch)
tree611cd19c2a3bf3b282ca4d6416959451b3d7f6e0 /Python/codecs.c
parentb09af03b8acc54076762e84393e446b68c861500 (diff)
downloadcpython-8ba79306d102cbe969127ff6034defff9c8bb6ec.zip
cpython-8ba79306d102cbe969127ff6034defff9c8bb6ec.tar.gz
cpython-8ba79306d102cbe969127ff6034defff9c8bb6ec.tar.bz2
Fix C89 incompatibility.
Diffstat (limited to 'Python/codecs.c')
-rw-r--r--Python/codecs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/codecs.c b/Python/codecs.c
index 47cdb20..dcc7c98 100644
--- a/Python/codecs.c
+++ b/Python/codecs.c
@@ -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) {