diff options
author | David Cournapeau <cournape@gmail.com> | 2008-09-20 16:12:59 +0000 |
---|---|---|
committer | David Cournapeau <cournape@gmail.com> | 2008-09-20 16:12:59 +0000 |
commit | 50a276b416cb7948afa50fbd85f19dff60710d9f (patch) | |
tree | 5f04a471800476c06fc19aebeb2f7a98b04c0831 | |
parent | b0747c03facbf61925a314f1b040824f62f9ecf3 (diff) | |
download | numpy-50a276b416cb7948afa50fbd85f19dff60710d9f.tar.gz |
Autoconf suggestion is totally bogus: isinf(nan) is false, not true.
-rw-r--r-- | numpy/core/src/math_c99.inc.src | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/numpy/core/src/math_c99.inc.src b/numpy/core/src/math_c99.inc.src index 310419911..7e96b5eec 100644 --- a/numpy/core/src/math_c99.inc.src +++ b/numpy/core/src/math_c99.inc.src @@ -139,8 +139,8 @@ double trunc(double x) # define isnan(x) ((x) != (x)) #endif -#if !defined(HAVE_DECL_ISINF) - # define isinf(x) isnan((x) - (x)) +#if !defined(HAVE_DECL_ISFINITE) + # define isfinite(x) !isnan((x) - (x)) #endif /* Define isfinie if needed */ |