From 4db643509090824a25ead50f2626ace3e1ed8ff3 Mon Sep 17 00:00:00 2001 From: fredb Date: Fri, 4 Jan 2008 21:45:14 +0000 Subject: [PATCH] Remove warnings --- simgear/structure/SGExpression.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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."); -- 2.39.5