diff Objects/stringobject.c @ 37896:f9eca133cf88 legacy-trunk

Py_ssize_t issue; repr()'ing a very large string would result in a teensy string, because of a cast to int.
author Thomas Wouters <thomas@python.org>
date Fri, 21 Apr 2006 13:54:43 +0000
parents 74f459a289be
children 32472ea5f3cd
line wrap: on
line diff
--- a/Objects/stringobject.c	Fri Apr 21 13:48:26 2006 +0000
+++ b/Objects/stringobject.c	Fri Apr 21 13:54:43 2006 +0000
@@ -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;
 	}
 }