NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: port-sparc64/47536: printf conversion fails for long double on sparc64
The following reply was made to PR port-sparc64/47536; it has been noted by
GNATS.
From: David Laight <david%l8s.co.uk@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc:
Subject: Re: port-sparc64/47536: printf conversion fails for long double on
sparc64
Date: Wed, 6 Feb 2013 21:36:47 +0000
On Wed, Feb 06, 2013 at 02:35:01PM +0000, martin%NetBSD.org@localhost wrote:
> >Number: 47536
> >Category: port-sparc64
> >Synopsis: printf conversion fails for long double on sparc64
...
> long long n;
> long double ld;
>
> n = 2147483648LL;
> ld = n;
> printf (" n = %lld\n", n);
> printf ("ld = %0.17Lg\n", ld);
...
> When run on sparc64 it prints:
> n = 2147483648
> ld = 0
Is that a printf() problem or a 'long long' to 'long double'
convertion problem?
David
--
David Laight: david%l8s.co.uk@localhost
Home |
Main Index |
Thread Index |
Old Index