src/cal3d/loader.cpp 1675c1675 < float duration= (float) atof(animation->Attribute("DURATION")); --- > float duration= getFloat(animation->Attribute("DURATION")); 1750c1750 < float time= (float) atof(keyframe->Attribute("TIME")); --- > float time= (float)getFloat(keyframe->Attribute("TIME")); 2184c2184 < Vertex.vectorInfluence[influenceId].weight = (float) atof(influencedata->Value()); --- > Vertex.vectorInfluence[influenceId].weight = (float)getFloat(influencedata->Value()); 2222c2222 < physicalProperty.weight = (float) atof(physiquedata->Value()); --- > physicalProperty.weight = (float)getFloat(physiquedata->Value()); 2249,2250c2249,2250 < Spring.springCoefficient = (float) atof(spring->Attribute("COEF")); < Spring.idleLength = (float) atof(spring->Attribute("LENGTH")); --- > Spring.springCoefficient = getFloat(spring->Attribute("COEF")); > Spring.idleLength = getFloat(spring->Attribute("LENGTH")); 2488c2488 < fshininess = (float)atof(shininessdata->Value()); --- > fshininess = getFloat(shininessdata->Value()); ./src/cal3d/tinyxml.cpp 31a32,34 > #include > #include > 34a38,46 > inline float getFloat(const char* str) > { > std::stringstream sconv; > float f; > sconv << str; > sconv >> f; > return(f); > } > 503c515 < *d = atof( s ); --- > *d = getFloat( s ); 907c919 < return atof (value.c_str ()); --- > return getFloat(value.c_str ()); ./src/cal3d/tinyxml.h 80a81,85 > /*! Get a float from a string, in a locale independent way > * \param str -> string with a float > * \return -> float value */ > float getFloat(const char* str); >