minor fix

This commit is contained in:
Ian Curtis 2022-06-14 18:14:06 +00:00
parent 7be381c9ba
commit 78eab65749

View file

@ -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)
{