From 3ac2f000d2fe88ca9934f8e2c6bb44ce129697f2 Mon Sep 17 00:00:00 2001 From: Dave Luff Date: Tue, 23 Nov 2010 15:06:22 +0000 Subject: [PATCH] KLN89: Fix small bug in FPL pages due to comparison against a negative quantity with unsigned variables --- src/Instrumentation/KLN89/kln89_page_fpl.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Instrumentation/KLN89/kln89_page_fpl.cxx b/src/Instrumentation/KLN89/kln89_page_fpl.cxx index 0e77671e2..6c57102cd 100644 --- a/src/Instrumentation/KLN89/kln89_page_fpl.cxx +++ b/src/Instrumentation/KLN89/kln89_page_fpl.cxx @@ -886,7 +886,7 @@ void KLN89FplPage::Knob1Right1() { } if(_kln89->_flightPlans[_subPage]->waypoints.size() == 1 || _fplPos == _kln89->_flightPlans[_subPage]->waypoints.size() + hfcount - 1) { // 1: Don't move - } else if(_fplPos >= _kln89->_flightPlans[_subPage]->waypoints.size() + hfcount - (_subPage == 0 ? 4 : 3)) { + } else if((int)_fplPos >= static_cast(_kln89->_flightPlans[_subPage]->waypoints.size()) + hfcount - (_subPage == 0 ? 4 : 3)) { _uLinePos++; } else { _fplPos++; -- 2.39.5