mirror of
https://github.com/RetroDECK/Supermodel.git
synced 2024-11-22 13:55:38 +00:00
values must be signed, to handle negative numbers, my bad
This commit is contained in:
parent
78eab65749
commit
e3bc56c8f1
|
@ -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.
|
||||
uint32_t numWholeMillisToSleep = uint32_t((target - time) * 1000 / s_perfCounterFrequency);
|
||||
int32_t numWholeMillisToSleep = int32_t((target - time) * 1000 / s_perfCounterFrequency);
|
||||
numWholeMillisToSleep -= 1;
|
||||
if (numWholeMillisToSleep > 0)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue