mirror of
https://github.com/holub/mame
synced 2025-05-12 09:08:53 +03:00
(UINT32 count < m_min) is impossible if m_min is 0
This commit is contained in:
parent
628e7a2b9b
commit
f42fb0a925
@ -131,7 +131,7 @@ DISCRETE_STEP(dss_counter)
|
||||
else
|
||||
{
|
||||
count -= inc;
|
||||
while (count < m_min)
|
||||
while (count < m_min || count > (0xffffffff - inc))
|
||||
{
|
||||
count += m_diff;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user