Fixed warnings when compiling for x64 on MSVC through VS 2017 v15.3.3.

pull/1425/head
Jared Mulconry 2017-09-11 00:09:40 +10:00
parent 1167edaeca
commit e40cd6c13c
1 changed files with 1 additions and 1 deletions

View File

@ -558,7 +558,7 @@ void X3DImporter::XML_ReadNode_GetAttrVal_AsArrF(const int pAttrIdx, std::vector
WordIterator wordItBegin(val, val + strlen(val)); WordIterator wordItBegin(val, val + strlen(val));
WordIterator wordItEnd; WordIterator wordItEnd;
std::transform(wordItBegin, wordItEnd, std::back_inserter(pValue), [](const char *match) { return atof(match); }); std::transform(wordItBegin, wordItEnd, std::back_inserter(pValue), [](const char *match) { return static_cast<float>(atof(match)); });
} }
} }