summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorAlexander Belopolsky <alexander.belopolsky@gmail.com>2015-09-28 02:32:15 (GMT)
committerAlexander Belopolsky <alexander.belopolsky@gmail.com>2015-09-28 02:32:15 (GMT)
commit365ba8f6c1459cc5a902f3bec264ac07d8487c70 (patch)
tree21cfec1c779a69080a84785c37c4bc2f66480844 /Modules
parent36aff2db4ae7e113a8fce91b46301bd85e9c2f3b (diff)
downloadcpython-365ba8f6c1459cc5a902f3bec264ac07d8487c70.zip
cpython-365ba8f6c1459cc5a902f3bec264ac07d8487c70.tar.gz
cpython-365ba8f6c1459cc5a902f3bec264ac07d8487c70.tar.bz2
Closes issue #23600: Wrong results from tzinfo.fromutc().
Diffstat (limited to 'Modules')
-rw-r--r--Modules/_datetimemodule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_datetimemodule.c b/Modules/_datetimemodule.c
index 1d583a5..e3de537 100644
--- a/Modules/_datetimemodule.c
+++ b/Modules/_datetimemodule.c
@@ -3046,7 +3046,7 @@ tzinfo_fromutc(PyDateTime_TZInfo *self, PyObject *dt)
goto Fail;
if (dst == Py_None)
goto Inconsistent;
- if (delta_bool(delta) != 0) {
+ if (delta_bool((PyDateTime_Delta *)dst) != 0) {
PyObject *temp = result;
result = add_datetime_timedelta((PyDateTime_DateTime *)result,
(PyDateTime_Delta *)dst, 1);