summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Whittle <awhittle@ualberta.ca>2017-12-09 11:04:39 -0700
committerAndrew Whittle <awhittle@ualberta.ca>2017-12-09 11:04:39 -0700
commit41cf1e8b9140387a12f5acff39143b46725510e4 (patch)
treecfdda0457f0dae2ebe5c3ce03e950cc65888b1f0
parent01d6723d5bd86a4070db35a046d41f2e37568579 (diff)
downloadxmr-stak-41cf1e8b9140387a12f5acff39143b46725510e4.zip
xmr-stak-41cf1e8b9140387a12f5acff39143b46725510e4.tar.gz
Beautification edit as per fireice-uk's suggestion
Makes casting more explicit.
-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 1167d65..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*(LONGLONG)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