From fd7bea645365b42d7f215bca2ff7bdc57880db68 Mon Sep 17 00:00:00 2001 From: Gary Preston Date: Tue, 4 Apr 2017 22:15:18 +0100 Subject: [PATCH] Retain signedness of numLegs to avoid unsigned/signed comparison. --- tests/test_flightplan.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_flightplan.cxx b/tests/test_flightplan.cxx index 48c3fbad7..74161453b 100644 --- a/tests/test_flightplan.cxx +++ b/tests/test_flightplan.cxx @@ -65,7 +65,7 @@ void testRoutePathBasic() RoutePath rtepath(fp1); - const unsigned int legCount = fp1->numLegs(); + const int legCount = fp1->numLegs(); for (int leg = 0; leg < legCount; ++leg) { rtepath.trackForIndex(leg); rtepath.pathForIndex(leg); @@ -124,7 +124,7 @@ void testRoutePathTrivialFlightPlan() RoutePath rtepath(fp1); - const unsigned int legCount = fp1->numLegs(); + const int legCount = fp1->numLegs(); for (int leg = 0; leg < legCount; ++leg) { rtepath.trackForIndex(leg); rtepath.pathForIndex(leg);