mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-04-18 23:41:41 +00:00
Fix warning C4296: '>=': expression is always true.
This commit is contained in:
parent
c0e2acc8cb
commit
2278ee070f
@ -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<int>( numberingTypeData.size() ),
|
||||
/* void */ );
|
||||
|
||||
const ARRAY_AXIS::NUMBERING_TYPE numberingType =
|
||||
numberingTypeData[newAlphabet].m_numbering_type;
|
||||
|
Loading…
Reference in New Issue
Block a user