Skip to content
Snippets Groups Projects
Commit bc50f802 authored by Cyrille Valladeau's avatar Cyrille Valladeau
Browse files

WRG : signed, unsigned comparaison

parent 2fd13989
Branches
Tags
No related merge requests found
...@@ -515,7 +515,7 @@ LabelObjectToPolygonFunctor<TLabelObject,TPolygon> ...@@ -515,7 +515,7 @@ LabelObjectToPolygonFunctor<TLabelObject,TPolygon>
} }
// if the end point is not on line n, add an intermediate point // 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; m_CurrentPoint[0] = endPoint[0]+1;
newPoint = m_CurrentPoint; newPoint = m_CurrentPoint;
...@@ -576,7 +576,7 @@ LabelObjectToPolygonFunctor<TLabelObject,TPolygon> ...@@ -576,7 +576,7 @@ LabelObjectToPolygonFunctor<TLabelObject,TPolygon>
} }
// if the end point is not on line n, add an intermediate point // 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; m_CurrentPoint[0] = endPoint[0]-1;
newPoint = m_CurrentPoint; newPoint = m_CurrentPoint;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment