mirror of
https://github.com/python/cpython
synced 2024-09-05 00:05:39 +00:00
gh-117068: Remove useless code in bytesio.c:resize_buffer() (GH-117069)
Co-authored-by: i.khabibulin <i.khabibulin@ngrsoftlab.ru>
This commit is contained in:
parent
42ae924d27
commit
63d6f2623e
|
@ -155,9 +155,6 @@ resize_buffer(bytesio *self, size_t size)
|
|||
alloc = size + 1;
|
||||
}
|
||||
|
||||
if (alloc > ((size_t)-1) / sizeof(char))
|
||||
goto overflow;
|
||||
|
||||
if (SHARED_BUF(self)) {
|
||||
if (unshare_buffer(self, alloc) < 0)
|
||||
return -1;
|
||||
|
|
Loading…
Reference in a new issue