Py_ssize_t issue; repr()'ing a very large string would result in a teensy

string, because of a cast to int.
This commit is contained in:
Thomas Wouters 2006-04-21 13:54:43 +00:00
parent 07b3508e24
commit 568f1d0eed
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}
}