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

Skip to content

Commit 7894a72

Browse files
committed
Merged revisions 68302 via svnmerge from
svn+ssh://[email protected]/python/trunk ........ r68302 | mark.dickinson | 2009-01-04 16:06:40 +0000 (Sun, 04 Jan 2009) | 4 lines Oops. Need to check not only that HAVE_DECL_ISINF is defined, but also that it's equal to 1. (If isinf isn't defined, HAVE_DECL_ISINF is defined to be 0, rather than being undefined.) ........
1 parent 3809026 commit 7894a72

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Include/pymath.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ extern double copysign(double, double);
8787
* Note: PC/pyconfig.h defines Py_IS_NAN as _isnan
8888
*/
8989
#ifndef Py_IS_NAN
90-
#ifdef HAVE_DECL_ISNAN
90+
#ifdef HAVE_DECL_ISNAN && HAVE_DECL_ISNAN == 1
9191
#define Py_IS_NAN(X) isnan(X)
9292
#else
9393
#define Py_IS_NAN(X) ((X) != (X))
@@ -104,7 +104,7 @@ extern double copysign(double, double);
104104
* Note: PC/pyconfig.h defines Py_IS_INFINITY as _isinf
105105
*/
106106
#ifndef Py_IS_INFINITY
107-
#ifdef HAVE_DECL_ISINF
107+
#ifdef HAVE_DECL_ISINF && HAVE_DECL_ISINF == 1
108108
#define Py_IS_INFINITY(X) isinf(X)
109109
#else
110110
#define Py_IS_INFINITY(X) ((X) && (X)*0.5 == (X))

0 commit comments

Comments
 (0)