From 6e1b5e9f2e7be9c6709d8022025a98c28ffe02f3 Mon Sep 17 00:00:00 2001 From: Erik Hofman Date: Mon, 11 Jan 2016 11:38:11 +0100 Subject: [PATCH] Fix a singed/unsigned warning --- src/Airports/dynamics.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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(); } -- 2.39.5