This is the mail archive of the libc-hacker@sourceware.cygnus.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]

Re: long double bug


On Mon, Dec 28, 1998 at 05:22:11PM -0800, Ulrich Drepper wrote:

> ralf@uni-koblenz.de writes:
> 
> > I've found a bug in libc 2.0.6 and libc 2.0.108.  The problem affects all
> > architectures where sizeof(double) is sizeof(long double) or more exactly
> > all architectures where long double doesn't have the same properties as on
> > i386 and m68k.
> 
> I've checked in some changes now.  I'm not really satisfied with the
> solution but since one of the things on the tale for glibc 2.2 is to
> provide better support for various long double formats I don't really
> care.  Give it a try.

The patch appended below is needed to compile it on the affected architectures.

  Ralf

--- glibc-2.0.109.orig/wcsmbs/wcstold.c	Wed Dec 30 03:12:08 1998
+++ glibc-2.0.109/wcsmbs/wcstold.c	Wed Dec 30 13:28:14 1998
@@ -45,6 +45,9 @@
 
 # include <stdlib/strtod.c>
 #else
+
+#include <stddef.h>
+
 /* There is no `long double' type, use the `double' implementations.  */
 long double
 __wcstold_internal (const wchar_t *nptr, wchar_t **endptr, int group)


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