summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authordas <das@FreeBSD.org>2009-01-08 06:12:03 +0000
committerdas <das@FreeBSD.org>2009-01-08 06:12:03 +0000
commitf72abde4fb0c07692e29a33cfbfba6e29eaceb67 (patch)
treec531df6664a466126dd0c1ecf0130e6031ba5f06 /lib
parent002f6ee5fca92be1ff3dbce38758b7bdd5bd3f91 (diff)
downloadFreeBSD-src-f72abde4fb0c07692e29a33cfbfba6e29eaceb67.zip
FreeBSD-src-f72abde4fb0c07692e29a33cfbfba6e29eaceb67.tar.gz
Fix the types of INFINITY and NAN, which were broken in r131851. They
should both be floats, not doubles. PR: 127795 Submitted by: Christoph Mallon MFC after: 2 weeks
Diffstat (limited to 'lib')
-rw-r--r--lib/msun/src/math.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/msun/src/math.h b/lib/msun/src/math.h
index 374f95f..5ad96a8 100644
--- a/lib/msun/src/math.h
+++ b/lib/msun/src/math.h
@@ -55,8 +55,8 @@ extern const union __nan_un {
#ifdef __MATH_BUILTIN_CONSTANTS
#define HUGE_VALF __builtin_huge_valf()
#define HUGE_VALL __builtin_huge_vall()
-#define INFINITY __builtin_inf()
-#define NAN __builtin_nan("")
+#define INFINITY __builtin_inff()
+#define NAN __builtin_nanf("")
#else
#define HUGE_VALF (float)HUGE_VAL
#define HUGE_VALL (long double)HUGE_VAL
OpenPOWER on IntegriCloud