pda600: iterators are not required to be pointers (#11362)

This commit is contained in:
Patrick Mackinlay 2023-06-23 08:16:44 +07:00 committed by GitHub
parent 1059c83315
commit 6367cbca03
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -263,7 +263,7 @@ TIMER_CALLBACK_MEMBER(pda600_copro_device::update_timer)
m_tone_cb(m_buf[0]);
m_update_timer->adjust(attotime::from_msec(m_buf[1] * 10));
m_buf_size -= 2;
std::memmove(m_buf.begin(), m_buf.begin() + 2, m_buf_size);
std::memmove(&m_buf[0], &m_buf[2], m_buf_size);
}
else
{
@ -445,7 +445,7 @@ void pda600_copro_device::exec_beep()
m_resp_type = m_resp_data = 0; // Empty response
m_state = STATE_PLAY_TONE;
m_buf_size -= 4;
std::memmove(m_buf.begin(), m_buf.begin() + 3, m_buf_size);
std::memmove(&m_buf[0], &m_buf[3], m_buf_size);
m_update_timer->adjust(attotime::zero);
}