summaryrefslogtreecommitdiffstats
path: root/Modules/mathmodule.c
diff options
context:
space:
mode:
Diffstat (limited to 'Modules/mathmodule.c')
-rw-r--r--Modules/mathmodule.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/Modules/mathmodule.c b/Modules/mathmodule.c
index 29c32a3..2c4cc73 100644
--- a/Modules/mathmodule.c
+++ b/Modules/mathmodule.c
@@ -694,13 +694,13 @@ math_1_to_whatever(PyObject *arg, double (*func) (double),
return NULL;
}
if (Py_IS_INFINITY(r) && Py_IS_FINITE(x)) {
- if (can_overflow)
- PyErr_SetString(PyExc_OverflowError,
- "math range error"); /* overflow */
- else
- PyErr_SetString(PyExc_ValueError,
- "math domain error"); /* singularity */
- return NULL;
+ if (can_overflow)
+ PyErr_SetString(PyExc_OverflowError,
+ "math range error"); /* overflow */
+ else
+ PyErr_SetString(PyExc_ValueError,
+ "math domain error"); /* singularity */
+ return NULL;
}
if (Py_IS_FINITE(r) && errno && is_error(r))
/* this branch unnecessary on most platforms */