mirror of
https://github.com/python/cpython.git
synced 2025-10-09 16:34:44 +00:00
Fix misuse of PyUnicode_GET_SIZE() => PyUnicode_GET_LENGTH()
And PyUnicode_GetSize() => PyUnicode_GetLength()
This commit is contained in:
parent
f3ae6208c7
commit
9e30aa52fd
10 changed files with 18 additions and 19 deletions
|
@ -2941,7 +2941,7 @@ _PyBytes_FormatLong(PyObject *val, int flags, int prec, int type,
|
|||
PyErr_BadInternalCall();
|
||||
return NULL;
|
||||
}
|
||||
llen = PyUnicode_GetSize(result);
|
||||
llen = PyUnicode_GetLength(result);
|
||||
if (llen > INT_MAX) {
|
||||
PyErr_SetString(PyExc_ValueError,
|
||||
"string too large in _PyBytes_FormatLong");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue