]> granicus.if.org Git - python/commitdiff
inline constant into its single use
authorBenjamin Peterson <benjamin@python.org>
Sat, 3 Dec 2016 20:32:38 +0000 (12:32 -0800)
committerBenjamin Peterson <benjamin@python.org>
Sat, 3 Dec 2016 20:32:38 +0000 (12:32 -0800)
Modules/_math.c

index fe75a36ec5171ea78364cd2e265b849af4c228ae..d314887fa0b7d1a846d0b7886f253315d9dc4a60 100644 (file)
@@ -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 */