From 7d55466ca73eaa18428df6448f9e8c06a5547741 Mon Sep 17 00:00:00 2001 From: smf- Date: Sun, 26 Apr 2020 15:40:26 +0100 Subject: [PATCH] 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 : ~~~~~~~~ ^~ --- src/mame/machine/namco06.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/mame/machine/namco06.cpp b/src/mame/machine/namco06.cpp index fe3eb02c7a2..2ed9d3aea29 100644 --- a/src/mame/machine/namco06.cpp +++ b/src/mame/machine/namco06.cpp @@ -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); } }