From: Xiang Zhang Date: Sun, 28 Oct 2018 15:58:42 +0000 (+0800) Subject: bpo-34672: fix a compiler warning in timemodule.c (GH-10176) X-Git-Tag: v3.8.0a1~644 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=163eca34c48f1b25e1504e37f4656773fd0fdc78;p=thirdparty%2FPython%2Fcpython.git bpo-34672: fix a compiler warning in timemodule.c (GH-10176) --- diff --git a/Modules/timemodule.c b/Modules/timemodule.c index 01eb9f69c4a7..c3ecd80a6083 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; }