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);
|
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");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue