bitwise comparison always evaluates to false [-Werror=tautological-compare]

1014 |        (inst & 0xfc007c00) == 0x84004200 ? 'x' : 'r',
      |        ~~~~~~~~~~~~~~~~~~~ ^~ ~~~~~~~~~~
This commit is contained in:
smf- 2020-01-24 00:49:43 +00:00
parent ac1eac4a6a
commit bfa7808975

View File

@ -1011,7 +1011,7 @@ offs_t m88000_disassembler::dasm_fp(std::ostream &stream, const char *mnemonic,
if ((inst & 0xfc006000) == 0x84004000)
{
util::stream_format(stream, "%-12s%c%d,", mnemonic,
(inst & 0xfc007c00) == 0x84004200 ? 'x' : 'r',
/*(inst & 0xfc007c00) == 0x84004200 ? 'x' : */'r',
(inst & 0x03e00000) >> 21);
}
else