summaryrefslogtreecommitdiffstats
path: root/Modules/_localemodule.c
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@haypocalc.com>2010-10-07 01:02:42 (GMT)
committerVictor Stinner <victor.stinner@haypocalc.com>2010-10-07 01:02:42 (GMT)
commitbeb4135b8c81e1dbbb841ecd7355ab5a09a3edd2 (patch)
tree5477c04eae02035c7d3df9efb50f3a7fc6dd78a1 /Modules/_localemodule.c
parentef12810f0c23a0c0e8b276e76d289f0f211ab5bb (diff)
downloadcpython-beb4135b8c81e1dbbb841ecd7355ab5a09a3edd2.zip
cpython-beb4135b8c81e1dbbb841ecd7355ab5a09a3edd2.tar.gz
cpython-beb4135b8c81e1dbbb841ecd7355ab5a09a3edd2.tar.bz2
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().
Diffstat (limited to 'Modules/_localemodule.c')
-rw-r--r--Modules/_localemodule.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/_localemodule.c b/Modules/_localemodule.c
index 67d16f4..1001dd2 100644
--- a/Modules/_localemodule.c
+++ b/Modules/_localemodule.c
@@ -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. */