aboutsummaryrefslogtreecommitdiff
path: root/winsup/mingw/mingwex/math/signbitl.c
diff options
context:
space:
mode:
Diffstat (limited to 'winsup/mingw/mingwex/math/signbitl.c')
-rw-r--r--winsup/mingw/mingwex/math/signbitl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/mingw/mingwex/math/signbitl.c b/winsup/mingw/mingwex/math/signbitl.c
index 78f9903..8b7bca5 100644
--- a/winsup/mingw/mingwex/math/signbitl.c
+++ b/winsup/mingw/mingwex/math/signbitl.c
@@ -5,7 +5,7 @@ int __signbitl (long double x) {
__asm__ ("fxam; fstsw %%ax;"
: "=a" (sw)
: "t" (x) );
- return sw & __FP_SIGNBIT;
+ return (sw & __FP_SIGNBIT) != 0;
}
int __attribute__ ((alias ("__signbitl"))) signbitl (long double);