Avoid compiler warnings.
Unsigned values are always >= 0...
This commit is contained in:
parent
b8f61df80f
commit
10d2d94778
2 changed files with 3 additions and 3 deletions
|
@ -273,8 +273,8 @@ int FGTrafficRecord::crosses(FGGroundNetwork * net,
|
|||
if (intentions.size()) {
|
||||
for (i = intentions.begin(); i != intentions.end(); i++) {
|
||||
if ((*i) > 0) {
|
||||
if ((currentTargetNode ==
|
||||
net->findSegment(*i)->getEnd()->getIndex())) {
|
||||
if (currentTargetNode ==
|
||||
net->findSegment(*i)->getEnd()->getIndex()) {
|
||||
//cerr << "Current crosses at " << currentTargetNode <<endl;
|
||||
return currentTargetNode;
|
||||
}
|
||||
|
|
|
@ -531,7 +531,7 @@ FGTaxiNode *FGGroundNetwork::findNode(unsigned idx)
|
|||
return itr->getAddress();
|
||||
} */
|
||||
|
||||
if ((idx >= 0) && (idx < nodes.size()))
|
||||
if (idx < nodes.size())
|
||||
return nodes[idx]->getAddress();
|
||||
else
|
||||
return 0;
|
||||
|
|
Loading…
Add table
Reference in a new issue