conformtest: Fix isnan function return type
Joseph S. Myers
joseph@codesourcery.com
Wed Nov 7 16:06:00 GMT 2012
XPG3 / XPG4 / UNIX98 define an insan function, a predecessor of the
C99 type-generic isnan macro. The conformtest data for this function
wrongly lists its return type as double instead of int. This patch
fixes this.
Tested x86_64.
2012-11-07 Joseph Myers <joseph@codesourcery.com>
* conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (isnan):
Change function return type to int.
diff --git a/conform/data/math.h-data b/conform/data/math.h-data
index 0d9246d..0a05b8d 100644
--- a/conform/data/math.h-data
+++ b/conform/data/math.h-data
@@ -18,7 +18,7 @@ type float_t
type double_t
# endif
# if defined XPG3 || defined XPG4 || defined UNIX98
-function double isnan (double)
+function int isnan (double)
# endif
# if !defined ISO99 && !defined ISO11 && !defined POSIX2008
--
Joseph S. Myers
joseph@codesourcery.com
More information about the Libc-alpha
mailing list