Issue #22241: Fix a compiler waring

This commit is contained in:
Victor Stinner 2015-09-08 00:12:49 +02:00
parent 6574a38327
commit 90fd895197
1 changed files with 1 additions and 1 deletions

View File

@ -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))