Replaced strtof with ANSI C strtod as suggested by Frederic Bouvier.
This commit is contained in:
parent
ee66876d21
commit
374bca92c7
1 changed files with 2 additions and 2 deletions
|
@ -32,12 +32,12 @@ static const char *
|
|||
parse_point (const char * s, Point3D &p)
|
||||
{
|
||||
char * endptr;
|
||||
float x = strtof(s, &endptr);
|
||||
float x = strtod(s, &endptr);
|
||||
if (endptr == s)
|
||||
return 0;
|
||||
else
|
||||
s = endptr;
|
||||
float y = strtof(s, &endptr);
|
||||
float y = strtod(s, &endptr);
|
||||
if (endptr == s) {
|
||||
SG_LOG(SG_TERRAIN, SG_WARN, "Uneven number of vertices!!");
|
||||
return 0;
|
||||
|
|
Loading…
Add table
Reference in a new issue