diff --git a/source/build/src/timer.cpp b/source/build/src/timer.cpp index eade9fb3c..c1bfa3904 100644 --- a/source/build/src/timer.cpp +++ b/source/build/src/timer.cpp @@ -38,7 +38,7 @@ ATTRIBUTE((flatten)) void timerUpdate(void) { auto time = steady_clock::now(); auto elapsedTime = time - timerlastsample; - int n = elapsedTime.count() * ((double)timerticspersec / timerGetFreqU64()) * steady_clock::period::num; + int n = elapsedTime.count() * (uint64_t) timerticspersec / timerGetFreqU64() * steady_clock::period::num; if (n <= 0) return;