Subject: Re: lib/6314: Bug in libc with `double' => `long long' conversions
To: None <>
From: der Mouse <mouse@Rodents.Montreal.QC.CA>
List: netbsd-bugs
Date: 10/17/1998 14:29:28
> Compile the following program and execute it.  It will print
> 280379776630786 instead of 280379776630785 as it should.  The bug
> seems to affect several NetBSD platforms.  It also happens on i386
> and mac68k.

> long long f (double x) { return x; }
> main () { printf ("%qd\n", f (280379776630785.0)); }

It also behaves as described on my SS1+ (the sparc port).  I have not
yet investigated further; if-&-when I do, I will report here.

NetBSD Sparkle.Rodents.Montreal.QC.CA 1.3F NetBSD 1.3F (GENERIC) #0: Fri Sep 18 01:52:53 EDT 1998 mouse@Sparkle.Rodents.Montreal.QC.CA:/big/sources/working-usr-src/sys/arch/sparc/compile/GENERIC sparc

					der Mouse

		     7D C8 61 52 5D E7 2D 39  4E F1 31 3E E8 B3 27 4B