another Clang fix [nw]

This commit is contained in:
Peter Ferrie 2023-02-03 19:45:10 -08:00
parent 1f93af5daf
commit 74b6c17f18

View File

@ -801,7 +801,7 @@ TIMER_CALLBACK_MEMBER(pioneer_ldv4200hle_device::process_vbi_data)
int32_t old_delta = (int32_t)m_mark_frame - (int32_t)old_frame;
int32_t curr_delta = (int32_t)m_mark_frame - (int32_t)m_curr_frame;
LOGMASKED(LOG_STOPS, "%s: Stop Mark is currently %d, old frame is %d, current frame is %d, old delta %d, curr delta %d\n", machine().describe_context(), m_mark_frame, old_frame, m_curr_frame, old_delta, curr_delta);
if (curr_delta == 0 || std::signbit(old_delta) != std::signbit(curr_delta))
if (curr_delta == 0 || (old_delta < 0) != (curr_delta < 0))
{
m_mark_frame = ~uint32_t(0);
if (is_cav_disc())
@ -919,7 +919,7 @@ int32_t pioneer_ldv4200hle_device::player_update(const vbi_metadata &vbi, int fi
int32_t jump_frame = (int32_t)m_curr_frame + elapsed_tracks;
int32_t curr_delta = (int32_t)m_mark_frame - (int32_t)m_curr_frame;
int32_t next_delta = (int32_t)m_mark_frame - (int32_t)jump_frame;
if (std::signbit(curr_delta) != std::signbit(next_delta))
if ((curr_delta < 0) != (next_delta < 0))
{
elapsed_tracks = curr_delta;
}