diff options
author | Tim Peters <tim.peters@gmail.com> | 2004-08-27 05:08:36 +0000 |
---|---|---|
committer | Tim Peters <tim.peters@gmail.com> | 2004-08-27 05:08:36 +0000 |
commit | 8dfe87af27e97251005cfb7e3e652f4e436e33b3 (patch) | |
tree | a48029979323d8e5cc658a2a58ff846e06b9215f /Objects | |
parent | 0bae58a267bfc0c9d5ec7c789011ab0fa2e40365 (diff) | |
download | cpython-8dfe87af27e97251005cfb7e3e652f4e436e33b3.tar.gz |
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')
-rw-r--r-- | Objects/unicodeobject.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |