aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--newlib/ChangeLog6
-rw-r--r--newlib/libc/stdlib/gdtoa-hexnan.c2
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;
}