]> git.mxchange.org Git - flightgear.git/commitdiff
KLN89: Fix small bug in FPL pages due to comparison against a negative quantity with...
authorDave Luff <daveluff@ntlworld.com>
Tue, 23 Nov 2010 15:06:22 +0000 (15:06 +0000)
committerDave Luff <daveluff@ntlworld.com>
Tue, 23 Nov 2010 16:29:21 +0000 (16:29 +0000)
src/Instrumentation/KLN89/kln89_page_fpl.cxx

index 0e77671e2a6471b765e077eaea924ebaf68eaf2e..6c57102cda638cef3fc20e107ad70cb76038cc2d 100644 (file)
@@ -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<int>(_kln89->_flightPlans[_subPage]->waypoints.size()) + hfcount - (_subPage == 0 ? 4 : 3)) {
                     _uLinePos++;
                 } else {
                     _fplPos++;