Avoid -Wsign-compare warnings

This commit is contained in:
Paul Cornett
2020-12-08 10:18:42 -08:00
parent b4e1da1d6a
commit 8cc18853f0

View File

@@ -392,7 +392,7 @@ int wxListBox::DoInsertItems(const wxArrayStringsAdapter& items,
const size_t numSelections = selections.size();
for ( size_t i = 0; i < numSelections; ++i )
{
if ( startpos <= selections[i] )
if ( int(startpos) <= selections[i] )
{
if ( HasMultipleSelection() )
{
@@ -401,7 +401,7 @@ int wxListBox::DoInsertItems(const wxArrayStringsAdapter& items,
// Do not deselect item if it is to be selected below
for ( j = 0; j < numSelections; ++j )
{
if ( selections[i] == selections[j] + numItems )
if ( selections[i] == selections[j] + int(numItems) )
break;
}