summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/device.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/emu/device.c')
-rw-r--r--src/emu/device.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/emu/device.c b/src/emu/device.c
index 5991bcfb30c..2fd68e6ed8e 100644
--- a/src/emu/device.c
+++ b/src/emu/device.c
@@ -333,7 +333,7 @@ attotime device_t::clocks_to_attotime(UINT64 numclocks) const
UINT64 device_t::attotime_to_clocks(const attotime &duration) const
{
- return mulu_32x32(duration.seconds, m_clock) + (UINT64)duration.attoseconds / (UINT64)m_attoseconds_per_clock;
+ return mulu_32x32(duration.seconds(), m_clock) + (UINT64)duration.attoseconds() / (UINT64)m_attoseconds_per_clock;
}
@@ -413,7 +413,7 @@ void device_t::start()
if (state_registrations == 0 && (interface(exec) || interface(sound)) && type() != SPEAKER)
{
logerror("Device '%s' did not register any state to save!\n", tag());
- if ((machine().system().flags & GAME_SUPPORTS_SAVE) != 0)
+ if ((machine().system().flags & MACHINE_SUPPORTS_SAVE) != 0)
fatalerror("Device '%s' did not register any state to save!\n", tag());
}