From 36b53a50e93911aee4b9e3912cdaad852f197dad Mon Sep 17 00:00:00 2001 From: Chris Pavlina Date: Tue, 12 Apr 2016 19:18:42 -0400 Subject: [PATCH] Fix signedness in a couple comparisons (warning suppression) --- pcbnew/dialogs/dialog_graphic_item_properties.cpp | 2 +- pcbnew/dialogs/dialog_graphic_item_properties_for_Modedit.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pcbnew/dialogs/dialog_graphic_item_properties.cpp b/pcbnew/dialogs/dialog_graphic_item_properties.cpp index 82abae93a9..b7c261c272 100644 --- a/pcbnew/dialogs/dialog_graphic_item_properties.cpp +++ b/pcbnew/dialogs/dialog_graphic_item_properties.cpp @@ -123,7 +123,7 @@ bool DIALOG_GRAPHIC_ITEM_PROPERTIES::TransferDataToWindow() m_DefaulThicknessTextUnit, }; - for( int ii = 0; ii < DIM( texts_unit ); ii++ ) + for( size_t ii = 0; ii < DIM( texts_unit ); ii++ ) { texts_unit[ii]->SetLabel( GetAbbreviatedUnitsLabel() ); } diff --git a/pcbnew/dialogs/dialog_graphic_item_properties_for_Modedit.cpp b/pcbnew/dialogs/dialog_graphic_item_properties_for_Modedit.cpp index 18f5e7dba2..17106f65ce 100644 --- a/pcbnew/dialogs/dialog_graphic_item_properties_for_Modedit.cpp +++ b/pcbnew/dialogs/dialog_graphic_item_properties_for_Modedit.cpp @@ -134,7 +134,7 @@ bool DIALOG_MODEDIT_FP_BODY_ITEM_PROPERTIES::TransferDataToWindow() m_DefaulThicknessTextUnit, }; - for( int ii = 0; ii < DIM( texts_unit ); ii++ ) + for( size_t ii = 0; ii < DIM( texts_unit ); ii++ ) { texts_unit[ii]->SetLabel( GetAbbreviatedUnitsLabel() ); }