Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5726b63

Browse files
committed
inline constant into its single use
1 parent f8f2138 commit 5726b63

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Modules/_math.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
static const double ln2 = 6.93147180559945286227E-01;
2323
static const double two_pow_m28 = 3.7252902984619141E-09; /* 2**-28 */
2424
static const double two_pow_p28 = 268435456.0; /* 2**28 */
25-
static const double zero = 0.0;
2625

2726
/* acosh(x)
2827
* Method :
@@ -143,7 +142,7 @@ _Py_atanh(double x)
143142
#ifdef Py_NAN
144143
return Py_NAN;
145144
#else
146-
return x/zero;
145+
return x/0.0;
147146
#endif
148147
}
149148
if (absx < two_pow_m28) { /* |x| < 2**-28 */

0 commit comments

Comments
 (0)