fix a minor compil warning.

This commit is contained in:
jean-pierre charras 2018-12-01 20:07:59 +01:00
parent ecfe564f4d
commit d607c4853d
1 changed files with 2 additions and 1 deletions

View File

@ -372,7 +372,8 @@ SHAPE_LINE_CHAIN dragCornerInternal( const SHAPE_LINE_CHAIN& aOrigin, const VECT
if( paths[j].SegmentCount() < 1 )
continue;
assert( dirCount < sizeof( dirs ) / sizeof( dirs[0] ) );
assert( dirCount < int( sizeof( dirs ) / sizeof( dirs[0] ) ) );
dirs[dirCount] = DIRECTION_45( paths[j].CSegment( 0 ) );
++dirCount;
}