summaryrefslogtreecommitdiffstats
path: root/Python/bltinmodule.c
diff options
context:
space:
mode:
Diffstat (limited to 'Python/bltinmodule.c')
-rw-r--r--Python/bltinmodule.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Python/bltinmodule.c b/Python/bltinmodule.c
index d192d5b..2a02d81 100644
--- a/Python/bltinmodule.c
+++ b/Python/bltinmodule.c
@@ -2640,7 +2640,7 @@ builtin_sum_impl(PyObject *module, PyObject *iterable, PyObject *start)
/* Avoid losing the sign on a negative result,
and don't let adding the compensation convert
an infinite or overflowed sum to a NaN. */
- if (c && Py_IS_FINITE(c)) {
+ if (c && isfinite(c)) {
f_result += c;
}
return PyFloat_FromDouble(f_result);
@@ -2672,7 +2672,7 @@ builtin_sum_impl(PyObject *module, PyObject *iterable, PyObject *start)
continue;
}
}
- if (c && Py_IS_FINITE(c)) {
+ if (c && isfinite(c)) {
f_result += c;
}
result = PyFloat_FromDouble(f_result);