[Python-checkins] cpython: Fix compilation failure (followup to #21803)

antoine.pitrou python-checkins at python.org
Tue Jul 8 01:08:56 CEST 2014


http://hg.python.org/cpython/rev/4609e31092b2
changeset:   91607:4609e31092b2
user:        Antoine Pitrou <solipsis at pitrou.net>
date:        Mon Jul 07 19:08:47 2014 -0400
summary:
  Fix compilation failure (followup to #21803)

files:
  Modules/cmathmodule.c |  6 +++---
  1 files changed, 3 insertions(+), 3 deletions(-)


diff --git a/Modules/cmathmodule.c b/Modules/cmathmodule.c
--- a/Modules/cmathmodule.c
+++ b/Modules/cmathmodule.c
@@ -313,7 +313,7 @@
 
     /* 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 @@
     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 @@
         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();

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list