Avoid -Wsign-compare warnings

This commit is contained in:
Paul Cornett 2022-02-13 13:52:52 -08:00
parent eafa248117
commit 511c537362
2 changed files with 2 additions and 2 deletions

View file

@ -148,7 +148,7 @@ void wxChoice::DoDeleteOneItem(unsigned int n)
// Deselect item being removed
int selIdx = GetSelection();
if ( selIdx != -1 && selIdx == n )
if ( selIdx != -1 && selIdx == int(n) )
SetSelection(-1);
dynamic_cast<wxChoiceWidgetImpl*>(GetPeer())->RemoveItem(n);

View file

@ -212,7 +212,7 @@ void wxComboBox::SetString(unsigned int n, const wxString& s)
GetComboPeer()->InsertItem(n, s);
// When selected item is removed its selection is invalidated
// so we need to re-select it manually.
if ( sel == n )
if ( sel == int(n) )
{
SetSelection(n);
}