2002-11-12 Jeff Johnston <jjohnstn@redhat.com>

* libc/stdlib/ldtoa.c (e64toe): When checking the exponent
        for inf/nan, make sure that the check ignores the sign bit.
This commit is contained in:
Jeff Johnston 2002-11-12 21:47:53 +00:00
parent 6ac7b97610
commit 944772c70a
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2002-11-12 Jeff Johnston <jjohnstn@redhat.com>
* libc/stdlib/ldtoa.c (e64toe): When checking the exponent
for inf/nan, make sure that the check ignores the sign bit.
2002-11-07 Joel Sherrill <joel@OARcorp.com>
* libc/sys/rtems/machine: New directory.

View File

@ -1859,7 +1859,7 @@ if((yy[NE-1] & 0x7fff) == 0 && (yy[NE-2] & 0x8000) == 0)
#ifdef INFINITY
/* Point to the exponent field. */
p = &yy[NE-1];
if( *p == 0x7fff )
if( (*p & 0x7fff) == 0x7fff )
{
#ifdef NANS
#ifdef IBMPC