summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author Alex W. Jackson <alex.w.jackson@gmail.com>2014-11-03 23:16:53 -0500
committer Alex W. Jackson <alex.w.jackson@gmail.com>2014-11-03 23:16:53 -0500
commitd2658487c12a885dc1333f0375aa2131a1eba03f (patch)
treecc974eb484a62955384523e474124529b899a2a1
parentd3331b3eed2730e4a78accbb4533fcf6e10b74dc (diff)
px4.c: safer portability fix (nw)
-rw-r--r--src/mess/drivers/px4.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mess/drivers/px4.c b/src/mess/drivers/px4.c
index 32c1f8797ef..4adb77446ef 100644
--- a/src/mess/drivers/px4.c
+++ b/src/mess/drivers/px4.c
@@ -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++)
{