Commit 90fd8951 authored by Victor Stinner's avatar Victor Stinner

Issue #22241: Fix a compiler waring

parent 6574a383
......@@ -3267,7 +3267,7 @@ timezone_str(PyDateTime_TimeZone *self)
Py_INCREF(self->name);
return self->name;
}
if (self == PyDateTime_TimeZone_UTC ||
if ((PyObject *)self == PyDateTime_TimeZone_UTC ||
(GET_TD_DAYS(self->offset) == 0 &&
GET_TD_SECONDS(self->offset) == 0 &&
GET_TD_MICROSECONDS(self->offset) == 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