netlist: Fix some pedantic clang warnings.

This commit is contained in:
couriersud 2020-08-21 07:51:09 +02:00
parent d92513678b
commit 1d723a69db
2 changed files with 3 additions and 3 deletions

View File

@ -79,7 +79,7 @@ namespace netlist
m_cnt = 0;
m_IP.inactivate();
/* static */ const netlist_time reset_time = netlist_time::from_nsec(140);
for (int i = 0; i < _TotalBits; i++)
for (unsigned i = 0; i < _TotalBits; i++)
if (((_LiveBitmask >> i) & 1) != 0)
m_Q[i].push(0, reset_time);
}
@ -100,7 +100,7 @@ namespace netlist
NLTIME_FROM_NS(1380), NLTIME_FROM_NS(1480),
};
for (int i = 0; i < _TotalBits; i++)
for (unsigned i = 0; i < _TotalBits; i++)
if (((_LiveBitmask >> i) & 1) != 0)
m_Q[i].push((cnt >> i) & 1, out_delayQn[i]);
}

View File

@ -67,7 +67,7 @@ namespace netlist
{
if (!m_ARQ())
{
uint16_t addr = m_A();
const auto addr = m_A();
m_latched_rom = m_ROM[addr];
}
uint8_t o = (m_enable_hi || m_enable_lo) ? m_latched_rom : 0;