diff options
author | Jeff Johnston <jjohnstn@redhat.com> | 2002-11-12 21:47:53 +0000 |
---|---|---|
committer | Jeff Johnston <jjohnstn@redhat.com> | 2002-11-12 21:47:53 +0000 |
commit | 944772c70a9e76c4f77c9b17593b433fd46558af (patch) | |
tree | 1a79a0584f0ccf493be15e6afff7a143e2da2cb7 /newlib/libc/stdlib/ldtoa.c | |
parent | 6ac7b9761011450bfa6234234981f8a5f20d6c76 (diff) | |
download | cygnal-944772c70a9e76c4f77c9b17593b433fd46558af.tar.gz cygnal-944772c70a9e76c4f77c9b17593b433fd46558af.tar.bz2 cygnal-944772c70a9e76c4f77c9b17593b433fd46558af.zip |
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.
Diffstat (limited to 'newlib/libc/stdlib/ldtoa.c')
-rw-r--r-- | newlib/libc/stdlib/ldtoa.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/newlib/libc/stdlib/ldtoa.c b/newlib/libc/stdlib/ldtoa.c index da652dd42..ca8b9f363 100644 --- a/newlib/libc/stdlib/ldtoa.c +++ b/newlib/libc/stdlib/ldtoa.c @@ -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 |