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:
parent
07b3508e24
commit
568f1d0eed
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue