* lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
restore the original errno.
+2011-01-07 Bruno Haible <bruno@clisp.org>
+
+ strtod: Restore errno when successfully parsing Infinity or NaN.
+ * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
+ restore the original errno.
+
2011-01-07 Bruno Haible <bruno@clisp.org>
remove test: Avoid failure on HP-UX 11.
&& c_tolower (s[4]) == 'y')
s += 5;
num = HUGE_VAL;
+ errno = saved_errno;
}
else if (c_tolower (*s) == 'n'
&& c_tolower (s[1]) == 'a'
to interpreting n-char-sequence as a hexadecimal number. */
if (s != end)
num = NAN;
+ errno = saved_errno;
}
else
{