From: Tim Peters Date: Fri, 27 Aug 2004 05:08:36 +0000 (+0000) Subject: PyUnicode_Join(): Missed a spot where I intended a cast from size_t to X-Git-Tag: v2.4a3~87 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=894c512c2ff6c2ec511716e58d8c4d9ff7e8c137;p=python 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. --- diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c index 19b8c283a5..e4426d4fe4 100644 --- a/Objects/unicodeobject.c +++ b/Objects/unicodeobject.c @@ -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;