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

strtof() to please Solaris 9.
This commit is contained in:
Alexandre Duret-Lutz 2004-11-28 19:42:10 +00:00
parent 8b67d86e39
commit 896dc5afec
2 changed files with 5 additions and 1 deletions

View file

@ -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;