Update XFileParser.cpp

Fix the build.
pull/1767/head
Kim Kulling 2018-02-05 13:53:06 +01:00 committed by GitHub
parent eb23946fe7
commit dceb7257dd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -1354,6 +1354,7 @@ ai_real XFileParser::ReadFloat()
double res; double res;
::memcpy( &res, mP, 8 ); ::memcpy( &res, mP, 8 );
mP += 8; mP += 8;
const ai_real result( static_cast<ai_real>( res ) );
return result; return result;
} else { } else {
mP = mEnd; mP = mEnd;