# STEPFileReader now scans real number literals as doubles.

git-svn-id: https://assimp.svn.sourceforge.net/svnroot/assimp/trunk@1127 67173fc5-114c-0410-ac8e-9d2fd5bffc1f
pull/5/head
aramis_acg 2012-01-31 16:29:06 +00:00
parent 5716c4b007
commit 2e4b1a08ff
1 changed files with 2 additions and 3 deletions

View File

@ -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);
}
}