]> sourceware.org Git - newlib-cygwin.git/commitdiff
Fix strtod("nan()", ptr).
authorEric Blake <eblake@redhat.com>
Tue, 4 Mar 2008 18:27:01 +0000 (18:27 +0000)
committerEric Blake <eblake@redhat.com>
Tue, 4 Mar 2008 18:27:01 +0000 (18:27 +0000)
* libc/stdlib/gdtoa-hexnan.c (hexnan): When the optional
n-char-sequence is omitted, still parse the ().
-------------------------------------------------------------------

newlib/ChangeLog
newlib/libc/stdlib/gdtoa-hexnan.c

index 2d4458bb8221f1bd96bcb8a7e95d76efe64b5a3f..b38996cc60934ba6d4c2e60a42605e4223653010 100644 (file)
@@ -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.
index 058bbd17d9a91e1e2266f2181681c0e9f4227aec..189fb238d04d82f44169e5965d0e1af091c0e9cb 100644 (file)
@@ -98,7 +98,7 @@ _DEFUN (hexnan, (sp, fpi, x0),
                                        }
                                continue;
                                }
-                       if (/*(*/ c == ')' && havedig) {
+                       if (/*(*/ c == ')') {
                                *sp = s + 1;
                                break;
                                }
This page took 0.197439 seconds and 5 git commands to generate.