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:
parent
ca362e9251
commit
27a4be5d87
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue