1
0
Fork 0

Replaced strtof with ANSI C strtod as suggested by Frederic Bouvier.

This commit is contained in:
david 2002-08-31 17:40:00 +00:00
parent ee66876d21
commit 374bca92c7

View file

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