HW: cleanup warnings of -Wtype-limits

ROM_BASE is 0, and address is unsigned. It is always
true that address >= 0. So just compare with ROM_SIZE
and don't use IN_RANGE macro to avoid the warning.
This commit is contained in:
Jun Su 2020-03-24 09:11:02 +08:00
parent 62707986b7
commit 3f72bc3e7e

View File

@ -314,7 +314,7 @@ void CEXIIPL::TransferByte(u8& data)
}
};
if (IN_RANGE(ROM))
if (address < ROM_BASE + ROM_SIZE)
{
if (!m_command.is_write())
{