summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpsychocrypt <psychocryptHPC@gmail.com>2017-12-09 19:57:05 +0100
committerGitHub <noreply@github.com>2017-12-09 19:57:05 +0100
commit24df7e0f0e5eb37aa001ef255b12b628331a4aee (patch)
treecfdda0457f0dae2ebe5c3ce03e950cc65888b1f0
parent31a078416042d5492540f4bdb1466a84b690430e (diff)
parent41cf1e8b9140387a12f5acff39143b46725510e4 (diff)
downloadxmr-stak-24df7e0f0e5eb37aa001ef255b12b628331a4aee.zip
xmr-stak-24df7e0f0e5eb37aa001ef255b12b628331a4aee.tar.gz
Merge pull request #445 from awhittle3/compat_usleep_fix
Fix compat_usleep for WIN32
-rw-r--r--xmrstak/backend/nvidia/nvcc_code/cuda_core.cu2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmrstak/backend/nvidia/nvcc_code/cuda_core.cu b/xmrstak/backend/nvidia/nvcc_code/cuda_core.cu
index 0b175b5..15a6f36 100644
--- a/xmrstak/backend/nvidia/nvcc_code/cuda_core.cu
+++ b/xmrstak/backend/nvidia/nvcc_code/cuda_core.cu
@@ -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);
OpenPOWER on IntegriCloud