diff --git a/pcbnew/dialogs/dialog_create_array.cpp b/pcbnew/dialogs/dialog_create_array.cpp index 1f5a099864..d5b6a2ed90 100644 --- a/pcbnew/dialogs/dialog_create_array.cpp +++ b/pcbnew/dialogs/dialog_create_array.cpp @@ -266,9 +266,10 @@ void DIALOG_CREATE_ARRAY::OnAxisNumberingChange( wxCommandEvent& aEvent ) { // On an alphabet change, make sure the offset control is valid by default. - const unsigned newAlphabet = aEvent.GetSelection(); + const int newAlphabet = aEvent.GetSelection(); - wxCHECK( newAlphabet >= 0 && newAlphabet < numberingTypeData.size(), /* void */ ); + wxCHECK( newAlphabet >= 0 && newAlphabet < static_cast( numberingTypeData.size() ), + /* void */ ); const ARRAY_AXIS::NUMBERING_TYPE numberingType = numberingTypeData[newAlphabet].m_numbering_type;