From beb0ab6466b59dfa9d61b8ad2cdb467664f25ac6 Mon Sep 17 00:00:00 2001 From: Eric Blake Date: Tue, 4 Mar 2008 18:27:01 +0000 Subject: Fix strtod("nan()", ptr). * libc/stdlib/gdtoa-hexnan.c (hexnan): When the optional n-char-sequence is omitted, still parse the (). ------------------------------------------------------------------- --- newlib/libc/stdlib/gdtoa-hexnan.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'newlib/libc/stdlib/gdtoa-hexnan.c') 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; } -- cgit v1.2.3