mirror of
https://github.com/holub/mame
synced 2025-07-05 09:57:47 +03:00
6840ptm.cpp: Fix unsigned comparison
This commit is contained in:
parent
6ef1a9c539
commit
ee6ab91939
@ -182,7 +182,7 @@ void ptm6840_device::deduct_from_counter(int idx)
|
||||
lsb = (m_latch[idx] & 0xff) + 1;
|
||||
msb--;
|
||||
|
||||
if (msb < 0)
|
||||
if (msb == 0xffff)
|
||||
{
|
||||
// If MSB is less than zero, we've timed out, no need to manually reload
|
||||
timed_out = true;
|
||||
|
Loading…
Reference in New Issue
Block a user