bpo-34672: fix a compiler warning in timemodule.c (GH-10176)

This commit is contained in:
Xiang Zhang 2018-10-28 23:58:42 +08:00 committed by GitHub
parent 49c75a8086
commit 163eca34c4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View 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;
}