Commit 896dc5af authored by Alexandre Duret-Lutz's avatar Alexandre Duret-Lutz
Browse files

* src/tgbatest/randtgba.cc (to_float): Use strtod() instead of

strtof() to please Solaris 9.
parent 8b67d86e
2004-11-28 Alexandre Duret-Lutz <adl@src.lip6.fr>
* src/tgbatest/randtgba.cc (to_float): Use strtod() instead of
strtof() to please Solaris 9.
* configure.ac (AM_INIT_AUTOMAKE): Use option tar-ustar, we have
filenames longer than 99 bytes.
......
......@@ -98,7 +98,8 @@ float
to_float(const char* s)
{
char* endptr;
float res = strtof(s, &endptr);
// Do not use strtof(), it does not exist on Solaris 9.
float res = strtod(s, &endptr);
if (*endptr)
{
std::cerr << "Failed to parse `" << s << "' as a float." << std::endl;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment