diff options
author | Eric Blake <eblake@redhat.com> | 2008-03-04 18:27:01 +0000 |
---|---|---|
committer | Eric Blake <eblake@redhat.com> | 2008-03-04 18:27:01 +0000 |
commit | beb0ab6466b59dfa9d61b8ad2cdb467664f25ac6 (patch) | |
tree | 635503bb0bac6535ce72fbbe5e4bcd6235fb5785 | |
parent | 4d35ce43511cf54c0e7f0f74313cc483a56606ce (diff) | |
download | cygnal-beb0ab6466b59dfa9d61b8ad2cdb467664f25ac6.tar.gz cygnal-beb0ab6466b59dfa9d61b8ad2cdb467664f25ac6.tar.bz2 cygnal-beb0ab6466b59dfa9d61b8ad2cdb467664f25ac6.zip |
Fix strtod("nan()", ptr).
* libc/stdlib/gdtoa-hexnan.c (hexnan): When the optional
n-char-sequence is omitted, still parse the ().
-------------------------------------------------------------------
-rw-r--r-- | newlib/ChangeLog | 6 | ||||
-rw-r--r-- | newlib/libc/stdlib/gdtoa-hexnan.c | 2 |
2 files changed, 7 insertions, 1 deletions
diff --git a/newlib/ChangeLog b/newlib/ChangeLog index 2d4458bb8..b38996cc6 100644 --- a/newlib/ChangeLog +++ b/newlib/ChangeLog @@ -1,3 +1,9 @@ +2008-03-04 Eric Blake <ebb9@byu.net> + + Fix strtod("nan()", ptr). + * libc/stdlib/gdtoa-hexnan.c (hexnan): When the optional + n-char-sequence is omitted, still parse the (). + 2008-03-03 Eric Blake <ebb9@byu.net> Fix ftell bug after ungetc. diff --git a/newlib/libc/stdlib/gdtoa-hexnan.c b/newlib/libc/stdlib/gdtoa-hexnan.c index 058bbd17d..189fb238d 100644 --- a/newlib/libc/stdlib/gdtoa-hexnan.c +++ b/newlib/libc/stdlib/gdtoa-hexnan.c @@ -98,7 +98,7 @@ _DEFUN (hexnan, (sp, fpi, x0), } continue; } - if (/*(*/ c == ')' && havedig) { + if (/*(*/ c == ')') { *sp = s + 1; break; } |