mirror of
https://github.com/python/cpython.git
synced 2025-11-03 03:22:27 +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
|
|
@ -33,7 +33,7 @@ static int
|
|||
convert_to_OSType(PyObject *v, OSType *pr)
|
||||
{
|
||||
uint32_t tmp;
|
||||
if (!PyUnicode_Check(v) || PyUnicode_GetSize(v) != 4) {
|
||||
if (!PyUnicode_Check(v) || PyUnicode_GetLength(v) != 4) {
|
||||
PyErr_SetString(PyExc_TypeError,
|
||||
"OSType arg must be string of 4 chars");
|
||||
return 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue