summaryrefslogtreecommitdiffstats
path: root/Objects/floatobject.c
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2007-08-31 04:32:55 (GMT)
committerNeal Norwitz <nnorwitz@gmail.com>2007-08-31 04:32:55 (GMT)
commit1fe5f388529dcdf674d53f7d67abc16c9c6ca5e5 (patch)
treeb35d6a88c4ded09687f9916e4d4c0b03bafde580 /Objects/floatobject.c
parent538d17aa233e99a0652d0c6d482845e8e909b6e0 (diff)
downloadcpython-1fe5f388529dcdf674d53f7d67abc16c9c6ca5e5.zip
cpython-1fe5f388529dcdf674d53f7d67abc16c9c6ca5e5.tar.gz
cpython-1fe5f388529dcdf674d53f7d67abc16c9c6ca5e5.tar.bz2
Remove checking redundantly for checks of PyInt and PyLong.
Diffstat (limited to 'Objects/floatobject.c')
-rw-r--r--Objects/floatobject.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/floatobject.c b/Objects/floatobject.c
index c060d8b..7c489d9 100644
--- a/Objects/floatobject.c
+++ b/Objects/floatobject.c
@@ -331,7 +331,7 @@ float_richcompare(PyObject *v, PyObject *w, int op)
j = PyFloat_AS_DOUBLE(w);
else if (!Py_IS_FINITE(i)) {
- if (PyInt_Check(w) || PyLong_Check(w))
+ if (PyLong_Check(w))
/* If i is an infinity, its magnitude exceeds any
* finite integer, so it doesn't matter which int we
* compare i with. If i is a NaN, similarly.