From 894c512c2ff6c2ec511716e58d8c4d9ff7e8c137 Mon Sep 17 00:00:00 2001 From: Tim Peters Date: Fri, 27 Aug 2004 05:08:36 +0000 Subject: 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. --- Objects/unicodeobject.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c index 19b8c28..e4426d4 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; -- cgit v0.12