Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Blake <eblake@redhat.com>2008-03-04 21:27:01 +0300
committerEric Blake <eblake@redhat.com>2008-03-04 21:27:01 +0300
commitbeb0ab6466b59dfa9d61b8ad2cdb467664f25ac6 (patch)
tree635503bb0bac6535ce72fbbe5e4bcd6235fb5785 /newlib/libc/stdlib
parent4d35ce43511cf54c0e7f0f74313cc483a56606ce (diff)
Fix strtod("nan()", ptr).
* libc/stdlib/gdtoa-hexnan.c (hexnan): When the optional n-char-sequence is omitted, still parse the (). -------------------------------------------------------------------
Diffstat (limited to 'newlib/libc/stdlib')
-rw-r--r--newlib/libc/stdlib/gdtoa-hexnan.c2
1 files changed, 1 insertions, 1 deletions
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;
}