From: fredb Date: Fri, 4 Jan 2008 21:45:14 +0000 (+0000) Subject: Remove warnings X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=4db643509090824a25ead50f2626ace3e1ed8ff3;p=simgear.git Remove warnings --- diff --git a/simgear/structure/SGExpression.cxx b/simgear/structure/SGExpression.cxx index b042cb90..5a04c509 100644 --- a/simgear/structure/SGExpression.cxx +++ b/simgear/structure/SGExpression.cxx @@ -94,13 +94,14 @@ static bool SGReadNaryOperands(SGNaryExpression* nary, SGPropertyNode *inputRoot, const SGPropertyNode *expression) { - for (unsigned i = 0; i < expression->nChildren(); ++i) { + for (int i = 0; i < expression->nChildren(); ++i) { SGExpression* inputExpression; inputExpression = SGReadIExpression(inputRoot, expression->getChild(i)); if (!inputExpression) return false; nary->addOperand(inputExpression); } + return true; } // template @@ -199,7 +200,7 @@ SGReadIExpression(SGPropertyNode *inputRoot, const SGPropertyNode *expression) clipMin = SGLimits::max(); SGSharedPtr > inputExpression; - for (unsigned i = 0; !inputExpression && i < expression->nChildren(); ++i) + for (int i = 0; !inputExpression && i < expression->nChildren(); ++i) inputExpression = SGReadIExpression(inputRoot, expression->getChild(i)); if (!inputExpression) { SG_LOG(SG_IO, SG_ALERT, "Cannot read \"" << name << "\" expression.");