diff options
author | Vas Crabb <vas@vastheman.com> | 2020-11-18 20:44:41 +1100 |
---|---|---|
committer | Vas Crabb <vas@vastheman.com> | 2020-11-18 20:44:41 +1100 |
commit | 516d3a1096879e2a0b83c42b4f989367e7e28bf2 (patch) | |
tree | bc430a168eca527ca15759cbfa53e83dfc5bc399 | |
parent | 66c3d08daae12e1f2161de7d99266d4c42dc850f (diff) |
vicdual.cpp: Fix extraneous parentheses on comparison warning.
-rw-r--r-- | src/mame/drivers/vicdual.cpp | 6 | ||||
-rw-r--r-- | src/tools/unidasm.cpp | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/mame/drivers/vicdual.cpp b/src/mame/drivers/vicdual.cpp index fb28d89e326..71d64c752d9 100644 --- a/src/mame/drivers/vicdual.cpp +++ b/src/mame/drivers/vicdual.cpp @@ -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); diff --git a/src/tools/unidasm.cpp b/src/tools/unidasm.cpp index 9200f206f56..fd32fdf0932 100644 --- a/src/tools/unidasm.cpp +++ b/src/tools/unidasm.cpp @@ -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; |