svn commit: r187811 - in stable/7/lib/msun: . src

David Schultz das at
Tue Jan 27 21:18:22 PST 2009

Author: das
Date: Wed Jan 28 05:18:21 2009
New Revision: 187811

  MFC r186886:
    Fix the types of INFINITY and NAN, which were broken in r131851. They
    should both be floats, not doubles.
    PR:		127795

  stable/7/lib/msun/   (props changed)

Modified: stable/7/lib/msun/src/math.h
--- stable/7/lib/msun/src/math.h	Wed Jan 28 05:07:16 2009	(r187810)
+++ stable/7/lib/msun/src/math.h	Wed Jan 28 05:18:21 2009	(r187811)
@@ -55,8 +55,8 @@ extern const union __nan_un {
 #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("")
 #define	HUGE_VALF	(float)HUGE_VAL
 #define	HUGE_VALL	(long double)HUGE_VAL

More information about the svn-src-stable-7 mailing list