diff options
author | Bruno Haible <bruno@clisp.org> | 2008-04-02 03:06:02 +0200 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2008-04-02 03:06:02 +0200 |
commit | 0a56509612c0b43a3f05361ecfb73b8b39f8e66c (patch) | |
tree | c1b1d4158281e0cb812c0fb31aeebafbbea0d801 /tests/test-roundf1.c | |
parent | 64902eb26d25feae17230a246608d1dfe74801e8 (diff) | |
download | gnulib-0a56509612c0b43a3f05361ecfb73b8b39f8e66c.tar.gz |
Use macros NaNf, NaNd, NaNl instead of NAN.
Diffstat (limited to 'tests/test-roundf1.c')
-rw-r--r-- | tests/test-roundf1.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/test-roundf1.c b/tests/test-roundf1.c index aeee3b1739..8131cb2aaa 100644 --- a/tests/test-roundf1.c +++ b/tests/test-roundf1.c @@ -26,6 +26,7 @@ #include <stdlib.h> #include "isnanf.h" +#include "nan.h" #define ASSERT(expr) \ do \ @@ -74,7 +75,7 @@ main () ASSERT (roundf (1.0 / 0.0f) == 1.0 / 0.0f); ASSERT (roundf (-1.0 / 0.0f) == -1.0 / 0.0f); /* NaNs. */ - ASSERT (isnanf (roundf (NAN))); + ASSERT (isnanf (roundf (NaNf ()))); return 0; } |