mirror of
https://github.com/python/cpython.git
synced 2025-07-24 03:35:53 +00:00
bpo-34672: fix a compiler warning in timemodule.c (GH-10176)
This commit is contained in:
parent
49c75a8086
commit
163eca34c4
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue