aboutsummaryrefslogtreecommitdiff
path: root/math
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2003-12-09 18:10:47 +0000
committerUlrich Drepper <drepper@redhat.com>2003-12-09 18:10:47 +0000
commit9dd39f84a92f07dac033c5679ab8bd3518f65c22 (patch)
tree7b4ba2ebdd514c81aacd3ec5f135da1a2dd36a7e /math
parent07449987c90864fceb487994b4aaa5170803ab24 (diff)
downloadglibc-9dd39f84a92f07dac033c5679ab8bd3518f65c22.zip
glibc-9dd39f84a92f07dac033c5679ab8bd3518f65c22.tar.gz
glibc-9dd39f84a92f07dac033c5679ab8bd3518f65c22.tar.bz2
Fix overflow test.
Diffstat (limited to 'math')
-rw-r--r--math/bug-nextafter.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/math/bug-nextafter.c b/math/bug-nextafter.c
index 015c32d..2a967c7 100644
--- a/math/bug-nextafter.c
+++ b/math/bug-nextafter.c
@@ -17,7 +17,7 @@ main (void)
puts ("nextafterf+ failed");
++result;
}
- if (fetestexcept (FE_OVERFLOW) != 0)
+ if (fetestexcept (FE_OVERFLOW) == 0)
{
puts ("nextafterf+ did not overflow");
++result;
@@ -28,7 +28,7 @@ main (void)
puts ("nextafterf- failed");
++result;
}
- if (fetestexcept (FE_OVERFLOW) != 0)
+ if (fetestexcept (FE_OVERFLOW) == 0)
{
puts ("nextafterf- did not overflow");
++result;
@@ -42,7 +42,7 @@ main (void)
puts ("nextafter+ failed");
++result;
}
- if (fetestexcept (FE_OVERFLOW) != 0)
+ if (fetestexcept (FE_OVERFLOW) == 0)
{
puts ("nextafter+ did not overflow");
++result;
@@ -53,7 +53,7 @@ main (void)
puts ("nextafter failed");
++result;
}
- if (fetestexcept (FE_OVERFLOW) != 0)
+ if (fetestexcept (FE_OVERFLOW) == 0)
{
puts ("nextafter- did not overflow");
++result;