summaryrefslogtreecommitdiffstats
path: root/Objects/unicodeobject.c
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2004-08-27 05:08:36 (GMT)
committerTim Peters <tim.peters@gmail.com>2004-08-27 05:08:36 (GMT)
commit894c512c2ff6c2ec511716e58d8c4d9ff7e8c137 (patch)
tree50ed50f8660ac28d966e15daeb514ba32af96b2a /Objects/unicodeobject.c
parent269ab628d71d8e5ec7dd78edd44b707beceeefcb (diff)
downloadcpython-894c512c2ff6c2ec511716e58d8c4d9ff7e8c137.zip
cpython-894c512c2ff6c2ec511716e58d8c4d9ff7e8c137.tar.gz
cpython-894c512c2ff6c2ec511716e58d8c4d9ff7e8c137.tar.bz2
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.
Diffstat (limited to 'Objects/unicodeobject.c')
-rw-r--r--Objects/unicodeobject.c2
1 files changed, 1 insertions, 1 deletions
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;