]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-34672: fix a compiler warning in timemodule.c (GH-10176)
authorXiang Zhang <angwerzx@126.com>
Sun, 28 Oct 2018 15:58:42 +0000 (23:58 +0800)
committerGitHub <noreply@github.com>
Sun, 28 Oct 2018 15:58:42 +0000 (23:58 +0800)
Modules/timemodule.c

index 01eb9f69c4a729a399a4f38aaeebb41f959d0ba2..c3ecd80a6083f1338b06d361a687ba0fdd651da6 100644 (file)
@@ -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;
             }