summaryrefslogtreecommitdiffstatshomepage
path: root/src/mess/drivers/gba.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mess/drivers/gba.c')
-rw-r--r--src/mess/drivers/gba.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mess/drivers/gba.c b/src/mess/drivers/gba.c
index 60ffed0d525..08fc5a6e04f 100644
--- a/src/mess/drivers/gba.c
+++ b/src/mess/drivers/gba.c
@@ -34,7 +34,7 @@ INLINE void ATTR_PRINTF(3,4) verboselog(running_machine &machine, int n_level, c
}
}
-#define GBA_ATTOTIME_NORMALIZE(a) do { while ((a).attoseconds >= ATTOSECONDS_PER_SECOND) { (a).seconds++; (a).attoseconds -= ATTOSECONDS_PER_SECOND; } } while (0)
+#define GBA_ATTOTIME_NORMALIZE(a) a.normalize()
static const UINT32 timer_clks[4] = { 16777216, 16777216/64, 16777216/256, 16777216/1024 };