Kaydet (Commit) dce65020 authored tarafından Stefan Krah's avatar Stefan Krah Kaydeden (comit) GitHub

bpo-31279: Silence -Wstringop-overflow warning. (#3207)

üst 138753c1
......@@ -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 {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment