This is the mail archive of the glibc-bugs@sourceware.org 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]
Other format: [Raw text]

[Bug libc/14519] New: Incorrect sign of zero on strtod underflow


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.


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