From 8ba79306d102cbe969127ff6034defff9c8bb6ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20v=2E=20L=C3=B6wis?= Date: Fri, 4 Nov 2011 12:26:49 +0100 Subject: Fix C89 incompatibility. --- Python/codecs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- cgit v0.12