summaryrefslogtreecommitdiffstats
path: root/Python/getargs.c
diff options
context:
space:
mode:
Diffstat (limited to 'Python/getargs.c')
-rw-r--r--Python/getargs.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/Python/getargs.c b/Python/getargs.c
index 0b155a1..dd7ca9f 100644
--- a/Python/getargs.c
+++ b/Python/getargs.c
@@ -859,10 +859,6 @@ convertsimple(PyObject *arg, const char **p_format, va_list *p_va, int flags,
double dval = PyFloat_AsDouble(arg);
if (PyErr_Occurred())
RETURN_ERR_OCCURRED;
- else if (dval > FLT_MAX)
- *p = (float)INFINITY;
- else if (dval < -FLT_MAX)
- *p = (float)-INFINITY;
else
*p = (float) dval;
break;