This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] C99 initializers for sysdeps/ieee754/bits/nan.h


Hi.

Another C99 conversion patch.

2002-12-15  Art Haas  <ahaas@airmail.net>

	* sysdeps/ieee754/bits/nan.h: Convert to C99 initializers.

Index: sysdeps/ieee754/bits/nan.h
===================================================================
RCS file: /cvs/glibc/libc/sysdeps/ieee754/bits/nan.h,v
retrieving revision 1.5
diff -u -r1.5 nan.h
--- sysdeps/ieee754/bits/nan.h	6 Jul 2001 04:55:54 -0000	1.5
+++ sysdeps/ieee754/bits/nan.h	16 Dec 2002 01:32:04 -0000
@@ -29,7 +29,7 @@
 # define NAN \
   (__extension__                                                            \
    ((union { unsigned __l __attribute__((__mode__(__SI__))); float __d; })  \
-    { __l: 0x7fc00000UL }).__d)
+    { .__l = 0x7fc00000UL }).__d)
 
 #else
 
-- 
They that can give up essential liberty to obtain a little temporary safety
deserve neither liberty nor safety.
 -- Benjamin Franklin, Historical Review of Pennsylvania, 1759


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]