Fix signed/unsigned comparison warning in PNS::LINE::ClipVertexRange

This commit is contained in:
Chris Pavlina 2016-09-20 14:26:16 -04:00
parent d957670034
commit c57fd7ccbf
1 changed files with 2 additions and 1 deletions

View File

@ -751,7 +751,8 @@ void LINE::ClipVertexRange( int aStart, int aEnd )
m_line = m_line.Slice( aStart, aEnd );
if( IsLinked() ) {
assert( m_segmentRefs.size() >= (aEnd - aStart) );
assert( m_segmentRefs.size() < INT_MAX );
assert( (int) m_segmentRefs.size() >= (aEnd - aStart) );
// Note: The range includes aEnd, but we have n-1 segments.
std::rotate(