mirror of
https://github.com/python/cpython.git
synced 2025-08-31 14:07:50 +00:00
PyUnicode_Join(): Missed a spot where I intended a cast from size_t to
int. I sure wish MS would gripe about that! Whatever, note that the statement above it guarantees that the cast loses no info.
This commit is contained in:
parent
269ab628d7
commit
894c512c2f
1 changed files with 1 additions and 1 deletions
|
@ -4047,7 +4047,7 @@ PyUnicode_Join(PyObject *separator, PyObject *seq)
|
||||||
sz = reslen + 100; /* breathing room */
|
sz = reslen + 100; /* breathing room */
|
||||||
if (sz < reslen || sz > INT_MAX) /* overflow -- no breathing room */
|
if (sz < reslen || sz > INT_MAX) /* overflow -- no breathing room */
|
||||||
sz = reslen;
|
sz = reslen;
|
||||||
res = _PyUnicode_New(sz);
|
res = _PyUnicode_New((int)sz);
|
||||||
if (res == NULL) {
|
if (res == NULL) {
|
||||||
Py_DECREF(item);
|
Py_DECREF(item);
|
||||||
goto onError;
|
goto onError;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue