This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/14519] New: Incorrect sign of zero on strtod underflow
- From: "jsm28 at gcc dot gnu.org" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: Sat, 25 Aug 2012 15:36:15 +0000
- Subject: [Bug libc/14519] New: Incorrect sign of zero on strtod underflow
- Auto-submitted: auto-generated
http://sourceware.org/bugzilla/show_bug.cgi?id=14519
Bug #: 14519
Summary: Incorrect sign of zero on strtod underflow
Product: glibc
Version: 2.16
Status: NEW
Severity: normal
Priority: P2
Component: libc
AssignedTo: unassigned@sourceware.org
ReportedBy: jsm28@gcc.gnu.org
CC: drepper.fsp@gmail.com
Classification: Unclassified
strtod sometimes returns positive zero on underflow when it should return
negative zero. Testcase:
#include <stdio.h>
#include <stdlib.h>
int
main (void)
{
printf ("%a\n", atof ("-0x0.7p-1074"));
return 0;
}
Testing a patch.
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.