+2008-03-30 Eric Blake <ebb9@byu.net>
+
+ More strtod touchups.
+ * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
+ sign of negative underflow, for now. Use .5, not .1.
+ * doc/posix-functions/strtod.texi (strtod): Mention these
+ limitations.
+ Reported by Jim Meyering.
+
2008-03-30 Bruno Haible <bruno@clisp.org>
* lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
2008-03-30 Eric Blake <ebb9@byu.net>
- More strtod touchups.
- * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
- sign of negative underflow, for now. Use .5, not .1.
- * doc/posix-functions/strtod.texi (strtod): Mention these
- limitations.
- Reported by Jim Meyering.
-
-2008-03-30 Eric Blake <ebb9@byu.net>
-
strtod touchups.
* lib/strtod.c (strtod): Avoid compiler warnings.
Reported by Jim Meyering.
char *ptr;
double result = strtod (input, &ptr);
ASSERT (result == HUGE_VAL);
- ASSERT (ptr == input + 8);
+ ASSERT (ptr == input + 9);
ASSERT (errno == ERANGE);
}
{
char *ptr;
double result = strtod (input, &ptr);
ASSERT (result == -HUGE_VAL);
- ASSERT (ptr == input + 9);
+ ASSERT (ptr == input + 10);
ASSERT (errno == ERANGE);
}
{