mirror of
https://github.com/holub/mame
synced 2025-04-22 00:11:58 +03:00
Code enhancement
Removed the assingment step by initializing target object with the value intended.
This commit is contained in:
parent
c98802148d
commit
c57cbd0b2e
@ -434,7 +434,7 @@ void device_scheduler::timeslice()
|
||||
while (m_basetime < m_timer_list->m_expire)
|
||||
{
|
||||
// by default, assume our target is the end of the next quantum
|
||||
attotime target = m_basetime + attotime(0, m_quantum_list.first()->m_actual);
|
||||
attotime target(m_basetime + attotime(0, m_quantum_list.first()->m_actual));
|
||||
|
||||
// however, if the next timer is going to fire before then, override
|
||||
if (m_timer_list->m_expire < target)
|
||||
|
Loading…
Reference in New Issue
Block a user