diff options
author | Thomas Wouters <thomas@python.org> | 2006-04-21 13:54:43 (GMT) |
---|---|---|
committer | Thomas Wouters <thomas@python.org> | 2006-04-21 13:54:43 (GMT) |
commit | 568f1d0eedc69bc9e1c190076255bf0afc8224f7 (patch) | |
tree | dcdd90b6c2037577de861875898f4a3407088b16 /Objects/stringobject.c | |
parent | 07b3508e244cafd54e194797e3ae2a8480075397 (diff) | |
download | cpython-568f1d0eedc69bc9e1c190076255bf0afc8224f7.zip cpython-568f1d0eedc69bc9e1c190076255bf0afc8224f7.tar.gz cpython-568f1d0eedc69bc9e1c190076255bf0afc8224f7.tar.bz2 |
Py_ssize_t issue; repr()'ing a very large string would result in a teensy
string, because of a cast to int.
Diffstat (limited to 'Objects/stringobject.c')
-rw-r--r-- | Objects/stringobject.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/stringobject.c b/Objects/stringobject.c index 750882b..166411a 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; } } |