Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 163eca3

Browse files
authored
bpo-34672: fix a compiler warning in timemodule.c (GH-10176)
1 parent 49c75a8 commit 163eca3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Modules/timemodule.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -570,7 +570,7 @@ gettmarg(PyObject *args, struct tm *p, const char *format)
570570
PyObject *item;
571571
item = PyTuple_GET_ITEM(args, 9);
572572
if (item != Py_None) {
573-
p->tm_zone = PyUnicode_AsUTF8(item);
573+
p->tm_zone = (char *)PyUnicode_AsUTF8(item);
574574
if (p->tm_zone == NULL) {
575575
return 0;
576576
}

0 commit comments

Comments
 (0)