summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rw-r--r--tools/regression/lib/libc/gen/test-fpclassify.c4
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__
OpenPOWER on IntegriCloud