Fix warning cast double to float
parent
273f6b0267
commit
d529dd17f9
|
@ -60,6 +60,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|||
#include "MemoryIOWrapper.h"
|
||||
#include "irrXMLWrapper.h"
|
||||
#include "../contrib/utf8cpp/source/utf8.h"
|
||||
#include "fast_atof.h"
|
||||
#include <stack>
|
||||
#include <map>
|
||||
#include <iostream>
|
||||
|
@ -714,7 +715,7 @@ public:
|
|||
if (floatValue) {
|
||||
return floatValue->value.size() == 1 ? floatValue->value.front() : 0;
|
||||
}
|
||||
return atof(attr->value->toString().c_str());
|
||||
return fast_atof(attr->value->toString().c_str());
|
||||
}
|
||||
|
||||
virtual float getAttributeValueAsFloat(int idx) const /*override*/ {
|
||||
|
@ -725,7 +726,7 @@ public:
|
|||
if (floatValue) {
|
||||
return floatValue->value.size() == 1 ? floatValue->value.front() : 0;
|
||||
}
|
||||
return atof(attributes[idx].value->toString().c_str());
|
||||
return fast_atof(attributes[idx].value->toString().c_str());
|
||||
}
|
||||
|
||||
virtual const char* getNodeName() const /*override*/ {
|
||||
|
|
Loading…
Reference in New Issue