From 146a5fead24f3c2576f90942026b413189647861 Mon Sep 17 00:00:00 2001 From: Christian Heimes Date: Sat, 3 Nov 2012 23:07:59 +0100 Subject: [PATCH] Fix compilation on Windows --- Objects/bytearrayobject.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Objects/bytearrayobject.c b/Objects/bytearrayobject.c index de33975f09..21c58ce5f4 100644 --- a/Objects/bytearrayobject.c +++ b/Objects/bytearrayobject.c @@ -636,6 +636,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 " @@ -643,7 +644,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; -- 2.50.0