[Python-checkins] cpython: Issue #22241: Fix a compiler waring

victor.stinner python-checkins at python.org
Tue Sep 8 00:15:40 CEST 2015


https://hg.python.org/cpython/rev/ea1bfb64e898
changeset: 97761:ea1bfb64e898
user: Victor Stinner <victor.stinner at gmail.com>
date: Tue Sep 08 00:12:49 2015 +0200
summary:
 Issue #22241: Fix a compiler waring
files:
 Modules/_datetimemodule.c | 2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Modules/_datetimemodule.c b/Modules/_datetimemodule.c
--- a/Modules/_datetimemodule.c
+++ b/Modules/_datetimemodule.c
@@ -3267,7 +3267,7 @@
 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))
-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /