This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
conformtest: Fix isnan function return type
- From: "Joseph S. Myers" <joseph at codesourcery dot com>
- To: <libc-alpha at sourceware dot org>
- Date: Wed, 7 Nov 2012 16:06:17 +0000
- Subject: conformtest: Fix isnan function return type
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