Fix size_t vs int issue.

This commit is contained in:
Stephen Anthony 2019-12-25 20:53:21 -03:30
parent 4c8c08639a
commit b6fc984690
1 changed files with 3 additions and 3 deletions

View File

@ -91,13 +91,13 @@ void ComboDialog::loadConfig()
{
StringList events = instance().eventHandler().getComboListForEvent(myComboEvent);
uInt32 size = std::min<uInt32>(events.size(), 8);
for(uInt32 i = 0; i < size; ++i)
size_t size = std::min<size_t>(events.size(), 8);
for(size_t i = 0; i < size; ++i)
myEvents[i]->setSelected("", events[i]);
// Fill any remaining items to 'None'
if(size < 8)
for(uInt32 i = size; i < 8; ++i)
for(size_t i = size; i < 8; ++i)
myEvents[i]->setSelected("None", "-1");
}