mirror of
https://github.com/python/cpython.git
synced 2025-08-23 02:04:56 +00:00
Fix misuse of PyUnicode_GET_SIZE, use PyUnicode_GET_LENGTH instead
This commit is contained in:
parent
ed2682be2f
commit
c4f281eba3
6 changed files with 10 additions and 12 deletions
|
@ -693,7 +693,7 @@ format_string_internal(PyObject *value, const InternalFormatSpec *format)
|
|||
Py_ssize_t rpad;
|
||||
Py_ssize_t total;
|
||||
Py_ssize_t pos;
|
||||
Py_ssize_t len = PyUnicode_GET_SIZE(value);
|
||||
Py_ssize_t len = PyUnicode_GET_LENGTH(value);
|
||||
PyObject *result = NULL;
|
||||
int maxchar = 127;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue