summaryrefslogtreecommitdiffstats
path: root/lib/msun
diff options
context:
space:
mode:
authordas <das@FreeBSD.org>2003-04-04 13:27:47 +0000
committerdas <das@FreeBSD.org>2003-04-04 13:27:47 +0000
commit534d93f661b2e33bcf6b2cb98f5bfcbaf17f083a (patch)
treec72ec5cbd0b98d5d581e65ddc6d20903941c193a /lib/msun
parent5a1181a557dbdb5273f48211c9e4f1063114cf32 (diff)
downloadFreeBSD-src-534d93f661b2e33bcf6b2cb98f5bfcbaf17f083a.zip
FreeBSD-src-534d93f661b2e33bcf6b2cb98f5bfcbaf17f083a.tar.gz
Fix braino in definition of isfinite().
Noticed by: marcus Pointy hat to: das
Diffstat (limited to 'lib/msun')
-rw-r--r--lib/msun/src/math.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/msun/src/math.h b/lib/msun/src/math.h
index 64cdac2..0c69f8f 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)
OpenPOWER on IntegriCloud