From 9dd39f84a92f07dac033c5679ab8bd3518f65c22 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Tue, 9 Dec 2003 18:10:47 +0000 Subject: Fix overflow test. --- math/bug-nextafter.c | 8 ++++---- 1 file 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; -- cgit 1.4.1