From 6d3bd9530d6d57f5b3ce0c4688caa58a4beb21ac Mon Sep 17 00:00:00 2001 From: David Schultz Date: Fri, 4 Apr 2003 13:27:47 +0000 Subject: [PATCH] Fix braino in definition of isfinite(). Noticed by: marcus Pointy hat to: das --- lib/msun/src/math.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/msun/src/math.h b/lib/msun/src/math.h index 64cdac28686..0c69f8f351c 100644 --- a/lib/msun/src/math.h +++ b/lib/msun/src/math.h @@ -51,7 +51,7 @@ extern const union __nan_un { : (sizeof (x) == sizeof (double)) ? __fpclassifyd(x) \ : __fpclassifyl(x)) -#define isfinite(x) (fpclassify(x) & (FP_INFINITE|FP_NAN) == 0) +#define isfinite(x) ((fpclassify(x) & (FP_INFINITE|FP_NAN)) == 0) #define isinf(x) (fpclassify(x) == FP_INFINITE) #define isnan(x) (fpclassify(x) == FP_NAN) #define isnanf(x) isnan(x)