* src/tgbatest/randtgba.cc (to_float): Use strtod() instead of
strtof() to please Solaris 9.
This commit is contained in:
parent
8b67d86e39
commit
896dc5afec
2 changed files with 5 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue