Fix compilation on Windows
diff --git a/Objects/bytearrayobject.c b/Objects/bytearrayobject.c
index 164c1cf..7d5dbd0 100644
--- 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;