mirror of
https://github.com/holub/mame
synced 2025-06-05 20:33:45 +03:00
netlist: Fix CD4053 device
* also fix signedness warning (clang) in CD4020
This commit is contained in:
parent
47f2b1b161
commit
bcfc49f5b8
@ -49,7 +49,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 < MAX_BITS; i++)
|
||||
for (unsigned i = 0; i < MAX_BITS; i++)
|
||||
if (((_LiveBitmask >> i) & 1) != 0)
|
||||
m_Q[i].push(0, reset_time);
|
||||
}
|
||||
@ -70,7 +70,7 @@ namespace netlist
|
||||
NLTIME_FROM_NS(1380), NLTIME_FROM_NS(1480),
|
||||
};
|
||||
|
||||
for (int i = 0; i < MAX_BITS; i++)
|
||||
for (unsigned i = 0; i < MAX_BITS; i++)
|
||||
if (((_LiveBitmask >> i) & 1) != 0)
|
||||
m_Q[i].push(cnt & 1, out_delayQn[i]);
|
||||
}
|
||||
|
@ -96,7 +96,7 @@ namespace netlist
|
||||
nl_fptype sup = (m_supply.VCC().Q_Analog() - m_supply.GND().Q_Analog());
|
||||
Rval = m_base_r() * nlconst::magic(5.0) / sup;
|
||||
}
|
||||
R.change_state([this, Rval]() -> void { this->m_RX.set_R(Rval);});
|
||||
R.change_state([&R, Rval]() -> void { R.set_R(Rval);});
|
||||
}
|
||||
|
||||
analog::NETLIB_SUB(R_base) m_RX;
|
||||
|
Loading…
Reference in New Issue
Block a user