From: Erik Hofman Date: Mon, 11 Jan 2016 10:38:11 +0000 (+0100) Subject: Fix a singed/unsigned warning X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=6e1b5e9f2e7be9c6709d8022025a98c28ffe02f3;p=flightgear.git Fix a singed/unsigned warning --- diff --git a/src/Airports/dynamics.cxx b/src/Airports/dynamics.cxx index 2710948e7..747f748f4 100644 --- a/src/Airports/dynamics.cxx +++ b/src/Airports/dynamics.cxx @@ -402,7 +402,7 @@ public: // becuase runways were sorted by score when building, they were added // by score also, so we can use a simple algorithim to assign - for (int r=0; r < runways.size(); ++r) { + for (unsigned int r=0; r < runways.size(); ++r) { if ((r % 2) == 0) { arrivals.push_back(runways[r]); } else { @@ -415,7 +415,7 @@ public: { ostringstream os; os << runways.front()->ident(); - for (int r=1; r ident(); } @@ -539,11 +539,11 @@ string FGAirportDynamics::fallbackGetActiveRunway(int action, double heading) ostringstream os; os << "\tArrival:" << _fallbackArrivalRunways.front()->ident(); - for (int r=1; r <_fallbackArrivalRunways.size(); ++r) { + for (unsigned int r=1; r <_fallbackArrivalRunways.size(); ++r) { os << ", " << _fallbackArrivalRunways[r]->ident(); } os << "\n\tDeparture:" << _fallbackDepartureRunways.front()->ident(); - for (int r=1; r <_fallbackDepartureRunways.size(); ++r) { + for (unsigned int r=1; r <_fallbackDepartureRunways.size(); ++r) { os << ", " << _fallbackDepartureRunways[r]->ident(); }