Avoid compiler warning.
This commit is contained in:
parent
9d08cfc24a
commit
2003e7cf2a
2 changed files with 2 additions and 2 deletions
|
@ -96,7 +96,7 @@ public:
|
||||||
_fp->deleteIndex(srcIndex);
|
_fp->deleteIndex(srcIndex);
|
||||||
_fp->insertWayptAtIndex(w, destIndex);
|
_fp->insertWayptAtIndex(w, destIndex);
|
||||||
|
|
||||||
if (srcIndex == currentWpIndex) {
|
if ((signed int) srcIndex == currentWpIndex) {
|
||||||
// current waypoint was moved
|
// current waypoint was moved
|
||||||
_fp->setCurrentIndex(destIndex);
|
_fp->setCurrentIndex(destIndex);
|
||||||
}
|
}
|
||||||
|
|
|
@ -319,7 +319,7 @@ FlightPlan::Leg* FlightPlan::currentLeg() const
|
||||||
|
|
||||||
FlightPlan::Leg* FlightPlan::previousLeg() const
|
FlightPlan::Leg* FlightPlan::previousLeg() const
|
||||||
{
|
{
|
||||||
if (_currentIndex == 0) {
|
if (_currentIndex <= 0) {
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue