mirror of
https://github.com/python/cpython.git
synced 2025-11-01 18:51:43 +00:00
Fix merge breakage.
This commit is contained in:
parent
9f2e346911
commit
5d7428b8ce
9 changed files with 26 additions and 26 deletions
|
|
@ -835,7 +835,7 @@ PyString_Repr(PyObject *obj, int smartquotes)
|
|||
static const char *hexdigits = "0123456789abcdef";
|
||||
register PyStringObject* op = (PyStringObject*) obj;
|
||||
Py_ssize_t length = PyString_GET_SIZE(op);
|
||||
size_t newsize = 3 + 4 * op->ob_size;
|
||||
size_t newsize = 3 + 4 * Py_Size(op);
|
||||
PyObject *v;
|
||||
if (newsize > PY_SSIZE_T_MAX || newsize / 4 != Py_Size(op)) {
|
||||
PyErr_SetString(PyExc_OverflowError,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue