diff options
author | Xiang Zhang <angwerzx@126.com> | 2018-10-28 15:58:42 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-28 15:58:42 (GMT) |
commit | 163eca34c48f1b25e1504e37f4656773fd0fdc78 (patch) | |
tree | f95eece487139c02b22c7caf0e9c797cc6282167 /Modules | |
parent | 49c75a8086c3df9add0779d2479b8f09b95cdf3b (diff) | |
download | cpython-163eca34c48f1b25e1504e37f4656773fd0fdc78.zip cpython-163eca34c48f1b25e1504e37f4656773fd0fdc78.tar.gz cpython-163eca34c48f1b25e1504e37f4656773fd0fdc78.tar.bz2 |
bpo-34672: fix a compiler warning in timemodule.c (GH-10176)
Diffstat (limited to 'Modules')
-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 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; } |