Skip to content

Commit

Permalink
Fixed warnings when compiling for x64 on MSVC through VS 2017 v15.3.3.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredmulconry committed Sep 10, 2017
1 parent 1167eda commit e40cd6c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/X3DImporter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -558,7 +558,7 @@ void X3DImporter::XML_ReadNode_GetAttrVal_AsArrF(const int pAttrIdx, std::vector

WordIterator wordItBegin(val, val + strlen(val));
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)); });
}
}

Expand Down

0 comments on commit e40cd6c

Please sign in to comment.