vicdual.cpp: Fix extraneous parentheses on comparison warning.

This commit is contained in:
Vas Crabb 2020-11-18 20:44:41 +11:00
parent 66c3d08daa
commit 516d3a1096
2 changed files with 4 additions and 4 deletions

View File

@ -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);

View File

@ -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;