From: Dave Luff Date: Tue, 23 Nov 2010 15:06:22 +0000 (+0000) Subject: KLN89: Fix small bug in FPL pages due to comparison against a negative quantity with... X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=3ac2f000d2fe88ca9934f8e2c6bb44ce129697f2;p=flightgear.git KLN89: Fix small bug in FPL pages due to comparison against a negative quantity with unsigned variables --- 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++;