summaryrefslogtreecommitdiff
path: root/gl/tests/test-frexp.c
diff options
context:
space:
mode:
Diffstat (limited to 'gl/tests/test-frexp.c')
-rw-r--r--gl/tests/test-frexp.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gl/tests/test-frexp.c b/gl/tests/test-frexp.c
index 4ed24d2902..a7ec639df6 100644
--- a/gl/tests/test-frexp.c
+++ b/gl/tests/test-frexp.c
@@ -27,6 +27,7 @@ SIGNATURE_CHECK (frexp, double, (double, int *));
#include "isnand-nolibm.h"
#include "minus-zero.h"
+#include "infinity.h"
#include "nan.h"
#include "macros.h"
@@ -67,7 +68,7 @@ main ()
{ /* Positive infinity. */
int exp = -9999;
double mantissa;
- x = 1.0 / 0.0;
+ x = Infinityd ();
mantissa = frexp (x, &exp);
ASSERT (mantissa == x);
}
@@ -75,7 +76,7 @@ main ()
{ /* Negative infinity. */
int exp = -9999;
double mantissa;
- x = -1.0 / 0.0;
+ x = - Infinityd ();
mantissa = frexp (x, &exp);
ASSERT (mantissa == x);
}