mirror of https://github.com/stella-emu/stella.git
Fix size_t vs int issue.
This commit is contained in:
parent
4c8c08639a
commit
b6fc984690
|
@ -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");
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue