diff options
Diffstat (limited to 'tools/regression/lib/libc/gen/test-fpclassify.c')
-rw-r--r-- | tools/regression/lib/libc/gen/test-fpclassify.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/regression/lib/libc/gen/test-fpclassify.c b/tools/regression/lib/libc/gen/test-fpclassify.c index cf20c84..8431fe8 100644 --- a/tools/regression/lib/libc/gen/test-fpclassify.c +++ b/tools/regression/lib/libc/gen/test-fpclassify.c @@ -35,7 +35,7 @@ main(void) { assert(fpclassify((float)0) == FP_ZERO); - assert(fpclassify((float)-0) == FP_ZERO); + assert(fpclassify((float)-0.0) == FP_ZERO); assert(fpclassify((float)1) == FP_NORMAL); assert(fpclassify((float)1000) == FP_NORMAL); #ifndef __alpha__ @@ -59,7 +59,7 @@ main(void) assert(fpclassify((double)NAN) == FP_NAN); assert(fpclassify((long double)0) == FP_ZERO); - assert(fpclassify((long double)-0) == FP_ZERO); + assert(fpclassify((long double)-0.0) == FP_ZERO); assert(fpclassify((long double)1) == FP_NORMAL); assert(fpclassify((long double)1000) == FP_NORMAL); #ifndef __alpha__ |