]> git.mxchange.org Git - flightgear.git/blobdiff - src/FDM/JSBSim/input_output/FGXMLParse.cpp
PAtch by Andreas Gaeb to eliminate NaN's in the location code
[flightgear.git] / src / FDM / JSBSim / input_output / FGXMLParse.cpp
index 7eefba94f8f5e3b93fa5e41e3bf348145e266d51..22d30a255d0ac0276d12a48029a8f3d54e1672c0 100755 (executable)
@@ -40,7 +40,7 @@ using namespace std;
 
 namespace JSBSim {
 
-static const char *IdSrc = "$Id$";
+static const char *IdSrc = "$Id: FGXMLParse.cpp,v 1.11 2010/09/28 02:54:03 jberndt Exp $";
 static const char *IdHdr = ID_XMLPARSE;
 
 /*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
@@ -122,7 +122,7 @@ void FGXMLParse::endElement (const char * name)
 {
   if (!working_string.empty()) {
     vector <string> work_strings = split(working_string, '\n');
-    for (int i=0; i<work_strings.size(); i++) current_element->AddData(work_strings[i]);
+    for (unsigned int i=0; i<work_strings.size(); i++) current_element->AddData(work_strings[i]);
   }
 
   current_element = current_element->GetParent();