Kaydet (Commit) 568f1d0e authored tarafından Thomas Wouters's avatar Thomas Wouters

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

string, because of a cast to int.
üst 07b3508e
......@@ -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;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment