summaryrefslogtreecommitdiffstats
path: root/Python/pyhash.c
diff options
context:
space:
mode:
Diffstat (limited to 'Python/pyhash.c')
-rw-r--r--Python/pyhash.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Python/pyhash.c b/Python/pyhash.c
index 5263622..4145d9e 100644
--- a/Python/pyhash.c
+++ b/Python/pyhash.c
@@ -90,8 +90,8 @@ _Py_HashDouble(PyObject *inst, double v)
double m;
Py_uhash_t x, y;
- if (!Py_IS_FINITE(v)) {
- if (Py_IS_INFINITY(v))
+ if (!isfinite(v)) {
+ if (isinf(v))
return v > 0 ? _PyHASH_INF : -_PyHASH_INF;
else
return PyObject_GenericHash(inst);