1
0
Fork 0

Avoid compiler warning.

This commit is contained in:
ThorstenB 2012-09-21 15:36:52 +02:00
parent 9d08cfc24a
commit 2003e7cf2a
2 changed files with 2 additions and 2 deletions

View file

@ -96,7 +96,7 @@ public:
_fp->deleteIndex(srcIndex);
_fp->insertWayptAtIndex(w, destIndex);
if (srcIndex == currentWpIndex) {
if ((signed int) srcIndex == currentWpIndex) {
// current waypoint was moved
_fp->setCurrentIndex(destIndex);
}

View file

@ -319,7 +319,7 @@ FlightPlan::Leg* FlightPlan::currentLeg() const
FlightPlan::Leg* FlightPlan::previousLeg() const
{
if (_currentIndex == 0) {
if (_currentIndex <= 0) {
return NULL;
}