From: Thomas Wouters Date: Fri, 21 Apr 2006 13:54:43 +0000 (+0000) Subject: Py_ssize_t issue; repr()'ing a very large string would result in a teensy X-Git-Tag: v2.5a2~86 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=568f1d0eedc69bc9e1c190076255bf0afc8224f7;p=python Py_ssize_t issue; repr()'ing a very large string would result in a teensy string, because of a cast to int. --- diff --git a/Objects/stringobject.c b/Objects/stringobject.c index 750882b992..166411a73c 100644 --- a/Objects/stringobject.c +++ b/Objects/stringobject.c @@ -865,7 +865,7 @@ PyString_Repr(PyObject *obj, int smartquotes) *p++ = quote; *p = '\0'; _PyString_Resize( - &v, (int) (p - PyString_AS_STRING(v))); + &v, (p - PyString_AS_STRING(v))); return v; } }