diff --git a/Src/OSD/SDL/Main.cpp b/Src/OSD/SDL/Main.cpp index 4a0d0de..4bf4247 100644 --- a/Src/OSD/SDL/Main.cpp +++ b/Src/OSD/SDL/Main.cpp @@ -851,7 +851,7 @@ static void SuperSleepUntil(uint64_t target) // Compute the whole number of millis to sleep. Because OS sleep is not accurate, // we actually sleep for one less and will spin-wait for the final millisecond. - int64_t numWholeMillisToSleep = int64_t((target - time) * 1000 / s_perfCounterFrequency); + uint32_t numWholeMillisToSleep = uint32_t((target - time) * 1000 / s_perfCounterFrequency); numWholeMillisToSleep -= 1; if (numWholeMillisToSleep > 0) {