summary refs log tree commit diff
path: root/math/bug-nextafter.c
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/bug-nextafter.c
parent07449987c90864fceb487994b4aaa5170803ab24 (diff)
downloadglibc-9dd39f84a92f07dac033c5679ab8bd3518f65c22.tar.gz
glibc-9dd39f84a92f07dac033c5679ab8bd3518f65c22.tar.xz
glibc-9dd39f84a92f07dac033c5679ab8bd3518f65c22.zip
Fix overflow test.
Diffstat (limited to 'math/bug-nextafter.c')
-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 015c32dd93..2a967c75bf 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;