mirror of
https://github.com/python/cpython.git
synced 2025-10-17 12:18:23 +00:00
Change PyUnicode_KIND to 1,2,4. Drop _KIND_SIZE and _CHARACTER_SIZE.
This commit is contained in:
parent
dd07732af5
commit
c47adb04b3
8 changed files with 84 additions and 123 deletions
|
@ -1669,7 +1669,7 @@ getstring(PyObject* string, Py_ssize_t* p_length,
|
|||
return NULL;
|
||||
ptr = PyUnicode_DATA(string);
|
||||
*p_length = PyUnicode_GET_LENGTH(string);
|
||||
*p_charsize = PyUnicode_CHARACTER_SIZE(string);
|
||||
*p_charsize = PyUnicode_KIND(string);
|
||||
*p_logical_charsize = 4;
|
||||
return ptr;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue