summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2014-07-07 23:08:47 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2014-07-07 23:08:47 (GMT)
commitde08cb60fdf40c4a684bb4c90b5186f9bf89b6d7 (patch)
tree0ad9df074b644e32d4efd44ca46aeede3703686b /Modules
parent1eee8e5207bbf1765492b6cd415fc0898bde5e43 (diff)
downloadcpython-de08cb60fdf40c4a684bb4c90b5186f9bf89b6d7.zip
cpython-de08cb60fdf40c4a684bb4c90b5186f9bf89b6d7.tar.gz
cpython-de08cb60fdf40c4a684bb4c90b5186f9bf89b6d7.tar.bz2
Fix compilation failure (followup to #21803)
Diffstat (limited to 'Modules')
-rw-r--r--Modules/cmathmodule.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/Modules/cmathmodule.c b/Modules/cmathmodule.c
index 91b369a..8d37f6b 100644
--- a/Modules/cmathmodule.c
+++ b/Modules/cmathmodule.c
@@ -313,7 +313,7 @@ c_atanh(Py_complex z)
/* Reduce to case where z.real >= 0., using atanh(z) = -atanh(-z). */
if (z.real < 0.) {
- return c_neg(c_atanh(c_neg(z)));
+ return _Py_c_neg(c_atanh(_Py_c_neg(z)));
}
ay = fabs(z.imag);
@@ -842,7 +842,7 @@ cmath_log(PyObject *self, PyObject *args)
x = c_log(x);
if (PyTuple_GET_SIZE(args) == 2) {
y = c_log(y);
- x = c_quot(x, y);
+ x = _Py_c_quot(x, y);
}
PyFPE_END_PROTECT(x)
if (errno != 0)
@@ -943,7 +943,7 @@ cmath_polar(PyObject *self, PyObject *args)
return NULL;
PyFPE_START_PROTECT("polar function", return 0)
phi = c_atan2(z); /* should not cause any exception */
- r = c_abs(z); /* sets errno to ERANGE on overflow; otherwise 0 */
+ r = _Py_c_abs(z); /* sets errno to ERANGE on overflow; otherwise 0 */
PyFPE_END_PROTECT(r)
if (errno != 0)
return math_error();