NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
port-sparc64/47536: printf conversion fails for long double on sparc64
>Number: 47536
>Category: port-sparc64
>Synopsis: printf conversion fails for long double on sparc64
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: port-sparc64-maintainer
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Feb 06 14:35:01 +0000 2013
>Originator: Martin Husemann
>Release: NetBSD 6.99.16
>Organization:
The NetBSD Foundation, Inc.
>Environment:
System: NetBSD whoever-brings-the-night.aprisoft.de 6.99.16 NetBSD 6.99.16
(WHOEVER) #20: Mon Feb 4 12:20:15 CET 2013
martin%emmas.aprisoft.de@localhost:/usr/src/sys/arch/sparc64/compile/WHOEVER
sparc64
Architecture: sparc64
Machine: sparc64
>Description:
This is a test program by Edward Berner posted to the Fossil users list:
#include <stdio.h>
int
main (int argc, char *argv[])
{
long long n;
long double ld;
n = 2147483648LL;
ld = n;
printf (" n = %lld\n", n);
printf ("ld = %0.17Lg\n", ld);
return 0;
}
When run on sparc64 it prints:
n = 2147483648
ld = 0
>How-To-Repeat:
s/a
>Fix:
n/a
Home |
Main Index |
Thread Index |
Old Index