[Python-checkins] cpython: Fix C89 incompatibility.

martin.v.loewis python-checkins at python.org
Fri Nov 4 12:27:20 CET 2011


http://hg.python.org/cpython/rev/2bec7c452b39
changeset:   73351:2bec7c452b39
user:        Martin v. Löwis <martin at v.loewis.de>
date:        Fri Nov 04 12:26:49 2011 +0100
summary:
  Fix C89 incompatibility.

files:
  Python/codecs.c |  2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)


diff --git a/Python/codecs.c b/Python/codecs.c
--- a/Python/codecs.c
+++ b/Python/codecs.c
@@ -613,9 +613,9 @@
         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) {

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list