summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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