diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2008-03-04 19:17:26 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2008-03-04 19:17:26 +0000 |
commit | 7afca6d35bdc665c41b9926f6f2a367b35971a2f (patch) | |
tree | 2f7febb30a34b5509f5b9c6d38c2b7d6cc519fe2 | |
parent | badea50574255924fa7222b5270c2a051faf395e (diff) | |
download | newlib-7afca6d35bdc665c41b9926f6f2a367b35971a2f.zip newlib-7afca6d35bdc665c41b9926f6f2a367b35971a2f.tar.gz newlib-7afca6d35bdc665c41b9926f6f2a367b35971a2f.tar.bz2 |
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 65c1bd7..78820b9 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 058bbd1..189fb23 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; } |