]> git.mxchange.org Git - flightgear.git/commitdiff
Fix UIUC libc++ compilation.
authorJames Turner <zakalawe@mac.com>
Mon, 23 Mar 2015 15:05:06 +0000 (10:05 -0500)
committerJames Turner <zakalawe@mac.com>
Tue, 24 Mar 2015 14:37:40 +0000 (09:37 -0500)
src/FDM/UIUCModel/uiuc_menu_functions.cpp

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