bpo-34672: fix a compiler warning in timemodule.c (GH-10176)
This commit is contained in:
parent
49c75a8086
commit
163eca34c4
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue