[Python-checkins] cpython (3.2): Fix compilation on Windows

christian.heimes python-checkins at python.org
Sat Nov 3 23:09:23 CET 2012


http://hg.python.org/cpython/rev/d8c47e199297
changeset:   80226:d8c47e199297
branch:      3.2
parent:      80216:18ed608ee594
user:        Christian Heimes <christian at cheimes.de>
date:        Sat Nov 03 23:07:59 2012 +0100
summary:
  Fix compilation on Windows

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


diff --git a/Objects/bytearrayobject.c b/Objects/bytearrayobject.c
--- a/Objects/bytearrayobject.c
+++ b/Objects/bytearrayobject.c
@@ -589,6 +589,7 @@
         needed = 0;
     }
     else if (values == (PyObject *)self || !PyByteArray_Check(values)) {
+        int err;
         if (PyNumber_Check(values) || PyUnicode_Check(values)) {
             PyErr_SetString(PyExc_TypeError,
                             "can assign only bytes, buffers, or iterables "
@@ -596,7 +597,6 @@
             return -1;
         }
         /* Make a copy and call this function recursively */
-        int err;
         values = PyByteArray_FromObject(values);
         if (values == NULL)
             return -1;

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


More information about the Python-checkins mailing list