Issue #22241: Fix a compiler waring
This commit is contained in:
parent
6574a38327
commit
90fd895197
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue