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:
Tim Peters 2004-08-27 05:08:36 +00:00
parent 269ab628d7
commit 894c512c2f

View file

@ -4047,7 +4047,7 @@ PyUnicode_Join(PyObject *separator, PyObject *seq)
sz = reslen + 100; /* breathing room */
if (sz < reslen || sz > INT_MAX) /* overflow -- no breathing room */
sz = reslen;
res = _PyUnicode_New(sz);
res = _PyUnicode_New((int)sz);
if (res == NULL) {
Py_DECREF(item);
goto onError;