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); StringList events = instance().eventHandler().getComboListForEvent(myComboEvent);
uInt32 size = std::min<uInt32>(events.size(), 8); size_t size = std::min<size_t>(events.size(), 8);
for(uInt32 i = 0; i < size; ++i) for(size_t i = 0; i < size; ++i)
myEvents[i]->setSelected("", events[i]); myEvents[i]->setSelected("", events[i]);
// Fill any remaining items to 'None' // Fill any remaining items to 'None'
if(size < 8) if(size < 8)
for(uInt32 i = size; i < 8; ++i) for(size_t i = size; i < 8; ++i)
myEvents[i]->setSelected("None", "-1"); myEvents[i]->setSelected("None", "-1");
} }