From f72abde4fb0c07692e29a33cfbfba6e29eaceb67 Mon Sep 17 00:00:00 2001 From: das Date: Thu, 8 Jan 2009 06:12:03 +0000 Subject: 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 --- lib/msun/src/math.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/msun/src') 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 -- cgit v1.1