Avoid -Wsign-compare warnings
This commit is contained in:
@@ -392,7 +392,7 @@ int wxListBox::DoInsertItems(const wxArrayStringsAdapter& items,
|
|||||||
const size_t numSelections = selections.size();
|
const size_t numSelections = selections.size();
|
||||||
for ( size_t i = 0; i < numSelections; ++i )
|
for ( size_t i = 0; i < numSelections; ++i )
|
||||||
{
|
{
|
||||||
if ( startpos <= selections[i] )
|
if ( int(startpos) <= selections[i] )
|
||||||
{
|
{
|
||||||
if ( HasMultipleSelection() )
|
if ( HasMultipleSelection() )
|
||||||
{
|
{
|
||||||
@@ -401,7 +401,7 @@ int wxListBox::DoInsertItems(const wxArrayStringsAdapter& items,
|
|||||||
// Do not deselect item if it is to be selected below
|
// Do not deselect item if it is to be selected below
|
||||||
for ( j = 0; j < numSelections; ++j )
|
for ( j = 0; j < numSelections; ++j )
|
||||||
{
|
{
|
||||||
if ( selections[i] == selections[j] + numItems )
|
if ( selections[i] == selections[j] + int(numItems) )
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user