[Python-checkins] r45614 - python/trunk/Objects/stringobject.c
thomas.wouters
python-checkins at python.org
Fri Apr 21 15:54:43 CEST 2006
Author: thomas.wouters
Date: Fri Apr 21 15:54:43 2006
New Revision: 45614
Modified:
python/trunk/Objects/stringobject.c
Log:
Py_ssize_t issue; repr()'ing a very large string would result in a teensy
string, because of a cast to int.
Modified: python/trunk/Objects/stringobject.c
==============================================================================
--- python/trunk/Objects/stringobject.c (original)
+++ python/trunk/Objects/stringobject.c Fri Apr 21 15:54:43 2006
@@ -865,7 +865,7 @@
*p++ = quote;
*p = '\0';
_PyString_Resize(
- &v, (int) (p - PyString_AS_STRING(v)));
+ &v, (p - PyString_AS_STRING(v)));
return v;
}
}
More information about the Python-checkins
mailing list