# fast_atof: fix comma handling.
git-svn-id: https://assimp.svn.sourceforge.net/svnroot/assimp/trunk@1209 67173fc5-114c-0410-ac8e-9d2fd5bffc1fpull/5/head
parent
d2e36b7a37
commit
687a4644d6
|
@ -233,7 +233,7 @@ inline const char* fast_atoreal_move( const char* c, Real& out)
|
||||||
}
|
}
|
||||||
|
|
||||||
f = static_cast<Real>( strtoul10_64 ( c, &c) );
|
f = static_cast<Real>( strtoul10_64 ( c, &c) );
|
||||||
if (*c == '.' || (c[0] == ',' && (c[1] >= '0' || c[1] <= '9'))) // allow for commas, too
|
if (*c == '.' || (c[0] == ',' && c[1] >= '0' && c[1] <= '9')) // allow for commas, too
|
||||||
{
|
{
|
||||||
++c;
|
++c;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue