]> git.mxchange.org Git - flightgear.git/commitdiff
Fix a couple compiler warnings.
authorcurt <curt>
Fri, 19 Sep 2003 20:03:43 +0000 (20:03 +0000)
committercurt <curt>
Fri, 19 Sep 2003 20:03:43 +0000 (20:03 +0000)
src/Main/util.cxx

index c6ab0aa5c04a63163c6df123071a2834ce9cbb9d..e2c12cd742076f2c887fb725da900fb1dfbcfe99 100644 (file)
@@ -40,17 +40,19 @@ SG_USING_STD(vector);
 void
 fgDefaultWeatherValue (const char * propname, double value)
 {
-    int i;
+    unsigned int i;
 
     SGPropertyNode * branch = fgGetNode("/environment/config/boundary", true);
     vector<SGPropertyNode_ptr> entries = branch->getChildren("entry");
-    for (i = 0; i < entries.size(); i++)
+    for (i = 0; i < entries.size(); i++) {
         entries[i]->setDoubleValue(propname, value);
+    }
 
     branch = fgGetNode("/environment/config/aloft", true);
     entries = branch->getChildren("entry");
-    for (i = 0; i < entries.size(); i++)
+    for (i = 0; i < entries.size(); i++) {
         entries[i]->setDoubleValue(propname, value);
+    }
 }