mirror of
https://github.com/holub/mame
synced 2025-04-22 16:31:49 +03:00
vicdual.cpp: Fix extraneous parentheses on comparison warning.
This commit is contained in:
parent
66c3d08daa
commit
516d3a1096
@ -1284,11 +1284,11 @@ uint8_t carnivalh_state::carnivalh_prot_r(offs_t offset)
|
||||
|
||||
uint8_t retdat = 0;
|
||||
|
||||
if (/*((m_previousaddress == 0xe3d4) || (m_previousaddress == 0xe76b)) && */(m_previousvalue == 0x24))
|
||||
if (/*((m_previousaddress == 0xe3d4) || (m_previousaddress == 0xe76b))*/ true && (m_previousvalue == 0x24))
|
||||
retdat = 0x02;
|
||||
else if (/*((m_previousaddress == 0xe3d4) || (m_previousaddress == 0xe76d)) && */(m_previousvalue == 0x66))
|
||||
else if (/*((m_previousaddress == 0xe3d4) || (m_previousaddress == 0xe76d))*/ true && (m_previousvalue == 0x66))
|
||||
retdat = 0x07;
|
||||
else if (/*((m_previousaddress == 0xe3d4) || (m_previousaddress == 0xe76f)) && */(m_previousvalue == 0x48))
|
||||
else if (/*((m_previousaddress == 0xe3d4) || (m_previousaddress == 0xe76f))*/ true && (m_previousvalue == 0x48))
|
||||
retdat = 0x03;
|
||||
else
|
||||
popmessage("%s: carnivalh_prot_r %04x %04x %02x\n", machine().describe_context(), offset, m_previousaddress, m_previousvalue);
|
||||
|
@ -1205,7 +1205,7 @@ int main(int argc, char *argv[])
|
||||
#else
|
||||
if (!std::freopen(nullptr, "rb", stdin)) {
|
||||
#endif
|
||||
std::fprintf(stderr, "Error reopening stin in binary mode\n");
|
||||
std::fprintf(stderr, "Error reopening stdin in binary mode\n");
|
||||
return 1;
|
||||
}
|
||||
std::size_t allocated = 0x1000;
|
||||
|
Loading…
Reference in New Issue
Block a user