mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
PyUnicode_AsWideCharString() takes a PyObject*, not a PyUnicodeObject*
All unicode functions uses PyObject* except PyUnicode_AsWideChar(). Fix the prototype for the new function PyUnicode_AsWideCharString().
This commit is contained in:
parent
ef12810f0c
commit
beb4135b8c
9 changed files with 14 additions and 14 deletions
|
@ -246,10 +246,10 @@ PyLocale_strcoll(PyObject* self, PyObject* args)
|
|||
if (!PyArg_ParseTuple(args, "UU:strcoll", &os1, &os2))
|
||||
return NULL;
|
||||
/* Convert the unicode strings to wchar[]. */
|
||||
ws1 = PyUnicode_AsWideCharString((PyUnicodeObject*)os1, NULL);
|
||||
ws1 = PyUnicode_AsWideCharString(os1, NULL);
|
||||
if (ws1 == NULL)
|
||||
goto done;
|
||||
ws2 = PyUnicode_AsWideCharString((PyUnicodeObject*)os2, NULL);
|
||||
ws2 = PyUnicode_AsWideCharString(os2, NULL);
|
||||
if (ws2 == NULL)
|
||||
goto done;
|
||||
/* Collate the strings. */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue