7
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:
Alex Shvartzkop 2025-01-22 11:40:45 +03:00
parent c0e2acc8cb
commit 2278ee070f

View File

@ -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;