Unverified Kaydet (Commit) 163eca34 authored tarafından Xiang Zhang's avatar Xiang Zhang Kaydeden (comit) GitHub

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

üst 49c75a80
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment