[Numpy-svn] r5849 - branches/clean_math_config/numpy/core/src

numpy-svn@scip... numpy-svn@scip...
Sat Sep 20 11:11:54 CDT 2008


Author: cdavid
Date: 2008-09-20 11:11:51 -0500 (Sat, 20 Sep 2008)
New Revision: 5849

Modified:
   branches/clean_math_config/numpy/core/src/math_c99.inc.src
Log:
Fix isfinite.

Modified: branches/clean_math_config/numpy/core/src/math_c99.inc.src
===================================================================
--- branches/clean_math_config/numpy/core/src/math_c99.inc.src	2008-09-20 16:10:53 UTC (rev 5848)
+++ branches/clean_math_config/numpy/core/src/math_c99.inc.src	2008-09-20 16:11:51 UTC (rev 5849)
@@ -145,7 +145,7 @@
 
 /* Define isfinie if needed */
 #if !defined(HAVE_DECL_ISFINITE)
-#define isfinite(x) (!(isinf((x)) || isnan((x))))
+#define isfinite(x) (!isinf(x) && !isnan(x))
 #endif
 
 #if !defined(HAVE_DECL_SIGNBIT)



More information about the Numpy-svn mailing list