aboutsummaryrefslogtreecommitdiff
path: root/Carpet/CycleClock
diff options
context:
space:
mode:
Diffstat (limited to 'Carpet/CycleClock')
-rw-r--r--Carpet/CycleClock/src/cycle.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/Carpet/CycleClock/src/cycle.h b/Carpet/CycleClock/src/cycle.h
index cbcf67f43..7901ccbeb 100644
--- a/Carpet/CycleClock/src/cycle.h
+++ b/Carpet/CycleClock/src/cycle.h
@@ -89,9 +89,10 @@
# endif
#endif
-#define INLINE_ELAPSED(INL) static INL double elapsed(ticks t1, ticks t0) \
-{ \
- return (double)t1 - (double)t0; \
+#define INLINE_ELAPSED(INL) \
+static INL double elapsed(ticks t1, ticks t0) \
+{ \
+ return (double)(t1 - t0); \
}
/*----------------------------------------------------------------*/