From: Victor Stinner Date: Mon, 7 Sep 2015 22:12:49 +0000 (+0200) Subject: Issue #22241: Fix a compiler waring X-Git-Tag: v3.6.0a1~1643 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=90fd895197f485583af630ef2e34cbdea298abf7;p=python Issue #22241: Fix a compiler waring --- diff --git a/Modules/_datetimemodule.c b/Modules/_datetimemodule.c index fe9a948ab0..ea2bae651b 100644 --- a/Modules/_datetimemodule.c +++ b/Modules/_datetimemodule.c @@ -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))