1
0
Fork 0

UIUC: fix check_float (EOF is not an error in this context)

http://sourceforge.net/p/flightgear/mailman/message/33683003/
This commit is contained in:
Rebecca N. Palmer 2015-04-03 14:18:04 +01:00
parent ca362e9251
commit 27a4be5d87

View file

@ -72,7 +72,7 @@ bool check_float( const string &token)
{
float value;
istringstream stream(token.c_str());
return (stream >> value).good();
return !((stream >> value).fail());
}
void d_2_to_3( double array2D[100][100], double array3D[][100][100], int index3D)