# STEPFileReader now scans real number literals as doubles.
git-svn-id: https://assimp.svn.sourceforge.net/svnroot/assimp/trunk@1127 67173fc5-114c-0410-ac8e-9d2fd5bffc1fpull/5/head
parent
5716c4b007
commit
2e4b1a08ff
|
@ -342,9 +342,8 @@ boost::shared_ptr<const EXPRESS::DataType> EXPRESS::DataType::Parse(const char*&
|
|||
const char* start = cur;
|
||||
for(;*cur && *cur != ',' && *cur != ')' && !IsSpace(*cur);++cur) {
|
||||
if (*cur == '.') {
|
||||
// XXX many STEP files contain extremely accurate data, float's precision may not suffice in many cases
|
||||
float f;
|
||||
inout = fast_atoreal_move<float>(start,f);
|
||||
double f;
|
||||
inout = fast_atoreal_move<double>(start,f);
|
||||
return boost::make_shared<EXPRESS::REAL>(f);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue