Skip to content
Snippets Groups Projects
Unverified Commit 24df7e0f authored by psychocrypt's avatar psychocrypt Committed by GitHub
Browse files

Merge pull request #445 from awhittle3/compat_usleep_fix

Fix compat_usleep for WIN32
parents 31a07841 41cf1e8b
No related branches found
No related tags found
No related merge requests found
......@@ -19,7 +19,7 @@ extern "C" void compat_usleep(uint64_t waitTime)
HANDLE timer;
LARGE_INTEGER ft;
ft.QuadPart = -(10*waitTime); // Convert to 100 nanosecond interval, negative value indicates relative time
ft.QuadPart = -10ll * int64_t(waitTime); // Convert to 100 nanosecond interval, negative value indicates relative time
timer = CreateWaitableTimer(NULL, TRUE, NULL);
SetWaitableTimer(timer, &ft, 0, NULL, NULL, 0);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment