diff options
author | Victor Stinner <victor.stinner@haypocalc.com> | 2010-10-07 01:02:42 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@haypocalc.com> | 2010-10-07 01:02:42 (GMT) |
commit | beb4135b8c81e1dbbb841ecd7355ab5a09a3edd2 (patch) | |
tree | 5477c04eae02035c7d3df9efb50f3a7fc6dd78a1 /Modules/timemodule.c | |
parent | ef12810f0c23a0c0e8b276e76d289f0f211ab5bb (diff) | |
download | cpython-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/timemodule.c')
-rw-r--r-- | Modules/timemodule.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/timemodule.c b/Modules/timemodule.c index 1a85662..5e6cd6c 100644 --- a/Modules/timemodule.c +++ b/Modules/timemodule.c @@ -502,7 +502,7 @@ time_strftime(PyObject *self, PyObject *args) buf.tm_isdst = 1; #ifdef HAVE_WCSFTIME - format = PyUnicode_AsWideCharString((PyUnicodeObject*)format_arg, NULL); + format = PyUnicode_AsWideCharString(format_arg, NULL); if (format == NULL) return NULL; fmt = format; |