diff options
Diffstat (limited to 'winsup/mingw/mingwex/math/signbit.c')
-rw-r--r-- | winsup/mingw/mingwex/math/signbit.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/mingw/mingwex/math/signbit.c b/winsup/mingw/mingwex/math/signbit.c index 7f86c86a3..997ddf86b 100644 --- a/winsup/mingw/mingwex/math/signbit.c +++ b/winsup/mingw/mingwex/math/signbit.c @@ -5,7 +5,7 @@ int __signbit (double x) { __asm__ ("fxam; fstsw %%ax;" : "=a" (sw) : "t" (x) ); - return sw & __FP_SIGNBIT; + return (sw & __FP_SIGNBIT) != 0; } #undef signbit |