]> git.mxchange.org Git - simgear.git/commitdiff
Remove warnings
authorfredb <fredb>
Fri, 4 Jan 2008 21:45:14 +0000 (21:45 +0000)
committerfredb <fredb>
Fri, 4 Jan 2008 21:45:14 +0000 (21:45 +0000)
simgear/structure/SGExpression.cxx

index b042cb90578a21318c37bc0ce64a526955932314..5a04c509ced1bdf404ffd9c50108d700f3b9b1a6 100644 (file)
@@ -94,13 +94,14 @@ static bool
 SGReadNaryOperands(SGNaryExpression<T>* nary,
                    SGPropertyNode *inputRoot, const SGPropertyNode *expression)
 {
-  for (unsigned i = 0; i < expression->nChildren(); ++i) {
+  for (int i = 0; i < expression->nChildren(); ++i) {
     SGExpression<T>* inputExpression;
     inputExpression = SGReadIExpression<T>(inputRoot, expression->getChild(i));
     if (!inputExpression)
       return false;
     nary->addOperand(inputExpression);
   }
+  return true;
 }
 
 // template<typename T>
@@ -199,7 +200,7 @@ SGReadIExpression(SGPropertyNode *inputRoot, const SGPropertyNode *expression)
       clipMin = SGLimits<T>::max();
 
     SGSharedPtr<SGExpression<T> > inputExpression;
-    for (unsigned i = 0; !inputExpression && i < expression->nChildren(); ++i)
+    for (int i = 0; !inputExpression && i < expression->nChildren(); ++i)
       inputExpression = SGReadIExpression<T>(inputRoot, expression->getChild(i));
     if (!inputExpression) {
       SG_LOG(SG_IO, SG_ALERT, "Cannot read \"" << name << "\" expression.");