mirror of
https://github.com/holub/mame
synced 2025-05-23 14:19:01 +03:00
fixed constant overflow, 64 bit constants require U64() macro.
This commit is contained in:
parent
ddeab45e69
commit
5eaa57c67f
@ -288,14 +288,14 @@ netlist_base_t::~netlist_base_t()
|
||||
void netlist_base_t::set_clock_freq(int clockfreq)
|
||||
{
|
||||
m_clockfreq = clockfreq;
|
||||
m_divisor = 1000000000L * 100L / (m_clockfreq) / m_gatedelay;
|
||||
m_divisor = U64(1000000000) * 100 / m_clockfreq / m_gatedelay;
|
||||
VERBOSE_OUT(("Divisor %d\n", m_divisor));
|
||||
}
|
||||
|
||||
void netlist_base_t::set_gatedelay(int gatedelay)
|
||||
{
|
||||
m_gatedelay = gatedelay;
|
||||
m_divisor = 1000000000L * 100L / (m_clockfreq) / m_gatedelay;
|
||||
m_divisor = U64(1000000000) * 100 / m_clockfreq / m_gatedelay;
|
||||
VERBOSE_OUT(("Divisor %d\n", m_divisor));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user