summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2016-12-03 12:32:38 -0800
committerBenjamin Peterson <benjamin@python.org>2016-12-03 12:32:38 -0800
commit5726b6316b472190db22abd346ba255445c57486 (patch)
tree7a14d645eac83311229bcb0d01ee3ad18a5982aa
parentf8f2138bd4c715f249f397c8f56cf75dec080931 (diff)
downloadcpython-git-5726b6316b472190db22abd346ba255445c57486.tar.gz
inline constant into its single use
-rw-r--r--Modules/_math.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/Modules/_math.c b/Modules/_math.c
index fe75a36ec5..d314887fa0 100644
--- a/Modules/_math.c
+++ b/Modules/_math.c
@@ -22,7 +22,6 @@
static const double ln2 = 6.93147180559945286227E-01;
static const double two_pow_m28 = 3.7252902984619141E-09; /* 2**-28 */
static const double two_pow_p28 = 268435456.0; /* 2**28 */
-static const double zero = 0.0;
/* acosh(x)
* Method :
@@ -143,7 +142,7 @@ _Py_atanh(double x)
#ifdef Py_NAN
return Py_NAN;
#else
- return x/zero;
+ return x/0.0;
#endif
}
if (absx < two_pow_m28) { /* |x| < 2**-28 */