mirror of
https://github.com/python/cpython.git
synced 2025-12-05 17:14:04 +00:00
Fix compilation on Windows
This commit is contained in:
commit
d081fbba58
1 changed files with 1 additions and 1 deletions
|
|
@ -589,6 +589,7 @@ bytearray_ass_subscript(PyByteArrayObject *self, PyObject *index, PyObject *valu
|
||||||
needed = 0;
|
needed = 0;
|
||||||
}
|
}
|
||||||
else if (values == (PyObject *)self || !PyByteArray_Check(values)) {
|
else if (values == (PyObject *)self || !PyByteArray_Check(values)) {
|
||||||
|
int err;
|
||||||
if (PyNumber_Check(values) || PyUnicode_Check(values)) {
|
if (PyNumber_Check(values) || PyUnicode_Check(values)) {
|
||||||
PyErr_SetString(PyExc_TypeError,
|
PyErr_SetString(PyExc_TypeError,
|
||||||
"can assign only bytes, buffers, or iterables "
|
"can assign only bytes, buffers, or iterables "
|
||||||
|
|
@ -596,7 +597,6 @@ bytearray_ass_subscript(PyByteArrayObject *self, PyObject *index, PyObject *valu
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
/* Make a copy and call this function recursively */
|
/* Make a copy and call this function recursively */
|
||||||
int err;
|
|
||||||
values = PyByteArray_FromObject(values);
|
values = PyByteArray_FromObject(values);
|
||||||
if (values == NULL)
|
if (values == NULL)
|
||||||
return -1;
|
return -1;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue