px4.c: safer portability fix (nw)

This commit is contained in:
Alex W. Jackson 2014-11-03 23:16:53 -05:00
parent d3331b3eed
commit d2658487c1

View File

@ -590,7 +590,8 @@ WRITE8_MEMBER( px4_state::sior_w )
// writing clock?
if (m_clock_state > 0)
{
struct tm *t = localtime((const long int *)&m_time.time);
time_t time = m_time.time;
struct tm *t = localtime(&time);
switch (m_clock_state++)
{