mirror of
https://github.com/holub/mame
synced 2025-04-22 00:11:58 +03:00
fix warning with vs2019_clang, from_ticks() takes whole numbers. (nw)
.\..\..\..\src\mame\machine\namco06.cpp(211,44): error : implicit conversion from 'double' to 'osd::u64' (aka 'unsigned long long') changes value from 0.5 to 0 [-Werror,-Wliteral-conversion] 91>..\..\..\..\..\src\mame\machine\namco06.cpp(211,44): error : m_nmi_timer->adjust(attotime::from_ticks(.5, clock()), 0, attotime::from_hz(clock() / divisor) / 2); 91>..\..\..\..\..\src\mame\machine\namco06.cpp(211,44): error : ~~~~~~~~ ^~
This commit is contained in:
parent
cff3741078
commit
7d55466ca7
@ -207,8 +207,7 @@ void namco_06xx_device::ctrl_w(uint8_t data)
|
||||
uint8_t num_shifts = (m_control & 0xe0) >> 5;
|
||||
uint8_t divisor = 1 << num_shifts;
|
||||
// The next change happens on the next clock falling edge.
|
||||
// Approximate this by waiting half a clock.
|
||||
m_nmi_timer->adjust(attotime::from_ticks(.5, clock()), 0, attotime::from_hz(clock() / divisor) / 2);
|
||||
m_nmi_timer->adjust(attotime::from_ticks(0, clock()), 0, attotime::from_hz(clock() / divisor) / 2);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user