1
0
Fork 0

Retain signedness of numLegs to avoid unsigned/signed comparison.

This commit is contained in:
Gary Preston 2017-04-04 22:15:18 +01:00 committed by James Turner
parent d2ca422c8b
commit fd7bea6453

View file

@ -65,7 +65,7 @@ void testRoutePathBasic()
RoutePath rtepath(fp1); RoutePath rtepath(fp1);
const unsigned int legCount = fp1->numLegs(); const int legCount = fp1->numLegs();
for (int leg = 0; leg < legCount; ++leg) { for (int leg = 0; leg < legCount; ++leg) {
rtepath.trackForIndex(leg); rtepath.trackForIndex(leg);
rtepath.pathForIndex(leg); rtepath.pathForIndex(leg);
@ -124,7 +124,7 @@ void testRoutePathTrivialFlightPlan()
RoutePath rtepath(fp1); RoutePath rtepath(fp1);
const unsigned int legCount = fp1->numLegs(); const int legCount = fp1->numLegs();
for (int leg = 0; leg < legCount; ++leg) { for (int leg = 0; leg < legCount; ++leg) {
rtepath.trackForIndex(leg); rtepath.trackForIndex(leg);
rtepath.pathForIndex(leg); rtepath.pathForIndex(leg);