diff options
author | Stefan Krah <skrah@bytereef.org> | 2017-08-25 18:12:05 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-08-25 18:12:05 (GMT) |
commit | dce6502059f46a04f90938b9d832394c8215397b (patch) | |
tree | 33228753b7443e9dd5e4958e85f3691bd7eae456 /Objects | |
parent | 138753c1b96b5e06a5c5d409fa4cae5e2fe1108b (diff) | |
download | cpython-dce6502059f46a04f90938b9d832394c8215397b.zip cpython-dce6502059f46a04f90938b9d832394c8215397b.tar.gz cpython-dce6502059f46a04f90938b9d832394c8215397b.tar.bz2 |
bpo-31279: Silence -Wstringop-overflow warning. (#3207)
Diffstat (limited to 'Objects')
-rw-r--r-- | Objects/bytearrayobject.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/bytearrayobject.c b/Objects/bytearrayobject.c index 22dd810..857a1aa 100644 --- a/Objects/bytearrayobject.c +++ b/Objects/bytearrayobject.c @@ -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 { |