From 8cc18853f01550de21f006870751e0d10f5fc4c6 Mon Sep 17 00:00:00 2001 From: Paul Cornett Date: Tue, 8 Dec 2020 10:18:42 -0800 Subject: [PATCH] Avoid -Wsign-compare warnings --- src/osx/listbox_osx.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/osx/listbox_osx.cpp b/src/osx/listbox_osx.cpp index 961141df13..046b3362df 100644 --- a/src/osx/listbox_osx.cpp +++ b/src/osx/listbox_osx.cpp @@ -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; }