From bc50f8025eb5a2769aebb32af3aed19e3f5defcd Mon Sep 17 00:00:00 2001 From: Cyrille Valladeau <cyrille.valladeau@c-s.fr> Date: Wed, 7 Oct 2009 09:07:51 +0200 Subject: [PATCH] WRG : signed, unsigned comparaison --- Code/Common/otbLabelObjectToPolygonFunctor.txx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Code/Common/otbLabelObjectToPolygonFunctor.txx b/Code/Common/otbLabelObjectToPolygonFunctor.txx index e51f63c1f8..da2dde0572 100644 --- a/Code/Common/otbLabelObjectToPolygonFunctor.txx +++ b/Code/Common/otbLabelObjectToPolygonFunctor.txx @@ -515,7 +515,7 @@ LabelObjectToPolygonFunctor<TLabelObject,TPolygon> } // if the end point is not on line n, add an intermediate point - if(line+m_LineOffset != endPoint[1] && m_CurrentPoint[0]> endPoint[0]+1) + if(static_cast<int>(line+m_LineOffset) != endPoint[1] && m_CurrentPoint[0]> endPoint[0]+1) { m_CurrentPoint[0] = endPoint[0]+1; newPoint = m_CurrentPoint; @@ -576,7 +576,7 @@ LabelObjectToPolygonFunctor<TLabelObject,TPolygon> } // if the end point is not on line n, add an intermediate point - if(line+m_LineOffset != endPoint[1] && m_CurrentPoint[0]< endPoint[0]-1 ) + if( static_cast<int>(line+m_LineOffset) != endPoint[1] && m_CurrentPoint[0]< endPoint[0]-1 ) { m_CurrentPoint[0] = endPoint[0]-1; newPoint = m_CurrentPoint; -- GitLab