summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Modules/timemodule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/timemodule.c b/Modules/timemodule.c
index 01eb9f6..c3ecd80 100644
--- a/Modules/timemodule.c
+++ b/Modules/timemodule.c
@@ -570,7 +570,7 @@ gettmarg(PyObject *args, struct tm *p, const char *format)
PyObject *item;
item = PyTuple_GET_ITEM(args, 9);
if (item != Py_None) {
- p->tm_zone = PyUnicode_AsUTF8(item);
+ p->tm_zone = (char *)PyUnicode_AsUTF8(item);
if (p->tm_zone == NULL) {
return 0;
}