mirror of https://github.com/stella-emu/stella.git
Fix clang warning.
This commit is contained in:
parent
0a2d94ec1d
commit
b91f0d9299
|
@ -136,7 +136,7 @@ void RomListWidget::setList(const CartDebug::Disassembly& disasm)
|
|||
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
void RomListWidget::setSelected(int item)
|
||||
{
|
||||
if(item < -1 || item >= static_cast<int>(myDisasm->list.size()))
|
||||
if(item < -1 || std::cmp_greater_equal(item, myDisasm->list.size()))
|
||||
return;
|
||||
|
||||
if(isEnabled())
|
||||
|
|
Loading…
Reference in New Issue