mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
bpo-31279: Silence -Wstringop-overflow warning. (#3207)
This commit is contained in:
parent
138753c1b9
commit
dce6502059
1 changed files with 1 additions and 1 deletions
|
@ -224,7 +224,7 @@ PyByteArray_Resize(PyObject *self, Py_ssize_t requested_size)
|
|||
return -1;
|
||||
}
|
||||
memcpy(sval, PyByteArray_AS_STRING(self),
|
||||
Py_MIN(requested_size, Py_SIZE(self)));
|
||||
Py_MIN((size_t)requested_size, (size_t)Py_SIZE(self)));
|
||||
PyObject_Free(obj->ob_bytes);
|
||||
}
|
||||
else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue