diff options
author | AJR <ajrhacker@users.noreply.github.com> | 2021-05-07 12:06:44 -0400 |
---|---|---|
committer | AJR <ajrhacker@users.noreply.github.com> | 2021-05-07 12:07:07 -0400 |
commit | 96a7ac9697d4f843513f9f457672896f5d39da2a (patch) | |
tree | 8f3040e37edcc0e9355a694daee4a07f8e006765 | |
parent | 763151a18c84a6c8a2d014a03a232e3ed41b9538 (diff) |
ns32000.cpp: Fix clang error: operator '?:' has lower precedence than '+'; '+' will be evaluated first [-Werror,-Wparentheses]
-rw-r--r-- | src/devices/cpu/ns32000/ns32000.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/devices/cpu/ns32000/ns32000.cpp b/src/devices/cpu/ns32000/ns32000.cpp index 0975fb2d57f..3ba143d03ba 100644 --- a/src/devices/cpu/ns32000/ns32000.cpp +++ b/src/devices/cpu/ns32000/ns32000.cpp @@ -992,7 +992,7 @@ template <int Width> void ns32000_device<Width>::execute_run() bool const dst = condition(quick); gen_write(mode[0], dst); - tex = mode[0].tea + dst ? 10 : 9; + tex = mode[0].tea + (dst ? 10 : 9); } break; case 4: @@ -1129,7 +1129,7 @@ template <int Width> void ns32000_device<Width>::execute_run() m_psr &= ~src; - tex = mode[0].tea + (size == SIZE_B) ? 18 : 30; + tex = mode[0].tea + ((size == SIZE_B) ? 18 : 30); } else interrupt(ILL, m_pc); @@ -1169,7 +1169,7 @@ template <int Width> void ns32000_device<Width>::execute_run() m_psr |= src; - tex = mode[0].tea + (size == SIZE_B) ? 18 : 30; + tex = mode[0].tea + ((size == SIZE_B) ? 18 : 30); } else interrupt(ILL, m_pc); @@ -1575,7 +1575,7 @@ template <int Width> void ns32000_device<Width>::execute_run() if (translate) data = space(0).read_byte(m_r[3] + u8(data)); - tex += top(size, m_r[1]) + translate ? top(SIZE_B) + 27 : (backward || uw) ? 24 : 13; + tex += top(size, m_r[1]) + (translate ? top(SIZE_B) + 27 : (backward || uw) ? 24 : 13); bool const match = !((m_r[4] ^ data) & size_mask[size]); if ((uw == 1 && !match) || (uw == 3 && match)) @@ -1627,7 +1627,7 @@ template <int Width> void ns32000_device<Width>::execute_run() if (translate) src1 = space(0).read_byte(m_r[3] + u8(src1)); - tex += top(size, m_r[1]) + top(size, m_r[2]) + translate ? top(SIZE_B) + 38 : 35; + tex += top(size, m_r[1]) + top(size, m_r[2]) + (translate ? top(SIZE_B) + 38 : 35); bool const match = !((m_r[4] ^ src1) & size_mask[size]); if ((uw == 1 && !match) || (uw == 3 && match)) @@ -1694,7 +1694,7 @@ template <int Width> void ns32000_device<Width>::execute_run() if (translate) data = space(0).read_byte(m_r[3] + u8(data)); - tex += top(size, m_r[1]) + translate ? top(SIZE_B) + 30 : 27; + tex += top(size, m_r[1]) + (translate ? top(SIZE_B) + 30 : 27); bool const match = !((m_r[4] ^ data) & size_mask[size]); if ((uw == 1 && !match) || (uw == 3 && match)) @@ -1950,7 +1950,7 @@ template <int Width> void ns32000_device<Width>::execute_run() else gen_write(mode[1], std::abs(src)); - tex = mode[0].tea + mode[1].tea + (src < 0) ? 9 : 8; + tex = mode[0].tea + mode[1].tea + ((src < 0) ? 9 : 8); } break; case 0xd: @@ -2614,7 +2614,7 @@ template <int Width> void ns32000_device<Width>::execute_run() { m_psr |= PSR_F; - tex = mode[0].tea + mode[1].tea + top(size, bounds) * 2 + (src >= lower) ? 7 : 10; + tex = mode[0].tea + mode[1].tea + top(size, bounds) * 2 + ((src >= lower) ? 7 : 10); } } break; |