From 2e4b1a08fff85c7c3989edcf6d44d81d00ae8399 Mon Sep 17 00:00:00 2001 From: aramis_acg Date: Tue, 31 Jan 2012 16:29:06 +0000 Subject: [PATCH] # 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 --- code/STEPFileReader.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/code/STEPFileReader.cpp b/code/STEPFileReader.cpp index 7741a8f90..7d39335f3 100644 --- a/code/STEPFileReader.cpp +++ b/code/STEPFileReader.cpp @@ -342,9 +342,8 @@ boost::shared_ptr 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(start,f); + double f; + inout = fast_atoreal_move(start,f); return boost::make_shared(f); } }