[Python-checkins] python/dist/src/Objects unicodeobject.c, 2.220,
2.221
tim_one at users.sourceforge.net
tim_one at users.sourceforge.net
Fri Aug 27 07:08:39 CEST 2004
Update of /cvsroot/python/python/dist/src/Objects
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12912/Objects
Modified Files:
unicodeobject.c
Log Message:
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.
Index: unicodeobject.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Objects/unicodeobject.c,v
retrieving revision 2.220
retrieving revision 2.221
diff -u -d -r2.220 -r2.221
--- unicodeobject.c 27 Aug 2004 01:49:32 -0000 2.220
+++ unicodeobject.c 27 Aug 2004 05:08:36 -0000 2.221
@@ -4047,7 +4047,7 @@
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;
More information about the Python-checkins
mailing list