diff options
-rw-r--r-- | Modules/_datetimemodule.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_datetimemodule.c b/Modules/_datetimemodule.c index 18363107091..fb78e6d0fe4 100644 --- a/Modules/_datetimemodule.c +++ b/Modules/_datetimemodule.c @@ -2160,7 +2160,7 @@ delta_new(PyTypeObject *type, PyObject *args, PyObject *kw) whole_us = 2.0 * round((leftover_us + x_is_odd) * 0.5) - x_is_odd; } - temp = PyLong_FromLong(whole_us); + temp = PyLong_FromLong((long)whole_us); if (temp == NULL) { Py_DECREF(x); |