Fix some warnings.

This commit is contained in:
Alex Shvartzkop 2024-04-06 09:51:24 +03:00 committed by dsa-t
parent 865e3a9f3c
commit b1180d9377
2 changed files with 3 additions and 3 deletions

View File

@ -1552,7 +1552,7 @@ static void fractureSingleCacheFriendly( SHAPE_POLY_SET::POLYGON& paths )
total_point_count += path.PointCount();
}
if( total_point_count > std::numeric_limits<FractureEdge::Index>::max() )
if( total_point_count > (size_t) std::numeric_limits<FractureEdge::Index>::max() )
{
wxLogWarning( wxT( "Polygon has more points than int limit" ) );
return;

View File

@ -93,8 +93,8 @@ bool DIALOG_TABLECELL_PROPERTIES::TransferDataToWindow()
return false;
bool firstCell = true;
GR_TEXT_H_ALIGN_T hAlign;
GR_TEXT_V_ALIGN_T vAlign;
GR_TEXT_H_ALIGN_T hAlign = GR_TEXT_H_ALIGN_INDETERMINATE;
GR_TEXT_V_ALIGN_T vAlign = GR_TEXT_V_ALIGN_INDETERMINATE;
for( PCB_TABLECELL* cell : m_cells )
{