diff options
author | Christian Heimes <christian@cheimes.de> | 2012-11-03 22:08:27 (GMT) |
---|---|---|
committer | Christian Heimes <christian@cheimes.de> | 2012-11-03 22:08:27 (GMT) |
commit | e9d08cf450e342f604fce919c6ae2905d8373881 (patch) | |
tree | 96af1bdcdedcdc71bbe7f0f635a7fe3daad65c57 | |
parent | 75e74c65e5d33ab4e43b30be6a7af351c6c15896 (diff) | |
parent | d081fbba58882adc06a07f820ecf555a992e8966 (diff) | |
download | cpython-e9d08cf450e342f604fce919c6ae2905d8373881.zip cpython-e9d08cf450e342f604fce919c6ae2905d8373881.tar.gz cpython-e9d08cf450e342f604fce919c6ae2905d8373881.tar.bz2 |
Fix compilation on Windows
-rw-r--r-- | Objects/bytearrayobject.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/bytearrayobject.c b/Objects/bytearrayobject.c index 88a0140..d1b70e5 100644 --- a/Objects/bytearrayobject.c +++ b/Objects/bytearrayobject.c @@ -589,6 +589,7 @@ bytearray_ass_subscript(PyByteArrayObject *self, PyObject *index, PyObject *valu 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 @@ bytearray_ass_subscript(PyByteArrayObject *self, PyObject *index, PyObject *valu return -1; } /* Make a copy and call this function recursively */ - int err; values = PyByteArray_FromObject(values); if (values == NULL) return -1; |