From 44033cd1431d7139c1fad9d542d9f1d7a516bb72 Mon Sep 17 00:00:00 2001 From: Alex Szpakowski Date: Thu, 21 May 2020 20:08:43 -0300 Subject: [PATCH] Fix a compile error on macOS/iOS --- src/modules/timer/Timer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/timer/Timer.cpp b/src/modules/timer/Timer.cpp index c3c020f38..db0df8241 100644 --- a/src/modules/timer/Timer.cpp +++ b/src/modules/timer/Timer.cpp @@ -155,7 +155,7 @@ double Timer::getTime() static const mach_timebase_info_data_t info = getTimebaseInfo(); static const uint64_t start = mach_absolute_time(); const uint64_t rel = mach_absolute_time() - start; - return ((double) rel * 1.0e-9) * (double) info.number / (double) info.denom; + return ((double) rel * 1.0e-9) * (double) info.numer / (double) info.denom; } #elif defined(LOVE_WINDOWS)