operator precedence warning from compiler

This commit is contained in:
folkert van heusden 2023-03-25 10:33:32 +01:00
parent d3339ec91b
commit 6ad5802866
Signed by untrusted user who does not match committer: folkert
GPG key ID: 6B6455EDFEED3BD1

View file

@ -501,7 +501,7 @@ uint32_t bus::calculate_physical_address(const int run_mode, const uint16_t a, c
if ((MMR0 & 1) || (is_write && (MMR0 & (1 << 8)))) { if ((MMR0 & 1) || (is_write && (MMR0 & (1 << 8)))) {
const uint8_t apf = a >> 13; // active page field const uint8_t apf = a >> 13; // active page field
bool d = space == d_space & (!!(MMR3 & di_ena_mask[run_mode])) ? space == d_space : false; bool d = (space == d_space) & ((!!(MMR3 & di_ena_mask[run_mode])) ? space == d_space : false);
uint16_t p_offset = a & 8191; // page offset uint16_t p_offset = a & 8191; // page offset