fix a minor compil warning

This commit is contained in:
jean-pierre charras 2020-07-01 18:41:50 +02:00
parent 8d18f289c7
commit bba5cfe17e
1 changed files with 2 additions and 2 deletions

View File

@ -939,7 +939,7 @@ void POINT_EDITOR::updatePoints()
int target = locked ? 0 : 2; int target = locked ? 0 : 2;
// Careful; pad shape is mutable... // Careful; pad shape is mutable...
if( m_editPoints->PointsSize() != target ) if( int( m_editPoints->PointsSize() ) != target )
{ {
getView()->Remove( m_editPoints.get() ); getView()->Remove( m_editPoints.get() );
m_editedPoint = nullptr; m_editedPoint = nullptr;
@ -967,7 +967,7 @@ void POINT_EDITOR::updatePoints()
// Careful; pad shape and orientation are mutable... // Careful; pad shape and orientation are mutable...
int target = locked || (int) pad->GetOrientation() % 900 > 0 ? 0 : 4; int target = locked || (int) pad->GetOrientation() % 900 > 0 ? 0 : 4;
if( m_editPoints->PointsSize() != target ) if( int( m_editPoints->PointsSize() ) != target )
{ {
getView()->Remove( m_editPoints.get() ); getView()->Remove( m_editPoints.get() );
m_editedPoint = nullptr; m_editedPoint = nullptr;