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

Skip to content

Commit c77e7a4

Browse files
committed
only define zero constant when it is used
1 parent ce68c19 commit c77e7a4

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

Modules/_math.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@
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+
#ifndef Py_NAN
2526
static const double zero = 0.0;
27+
#endif
2628

2729
/* acosh(x)
2830
* Method :

0 commit comments

Comments
 (0)