summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfireice-uk <fireice-uk@users.noreply.github.com>2018-03-28 20:24:37 +0100
committerGitHub <noreply@github.com>2018-03-28 20:24:37 +0100
commit38c0955aad49587113146ac5f898024695c4dc9a (patch)
treec497f19c12443690d4d5875d2b2db1d86a9e1665
parent15f1a3ae7df17cffb0fbeb205e35782aee941c91 (diff)
parent983efafd4831cdb54c95e3343f969cd6fa776201 (diff)
downloadxmr-stak-38c0955aad49587113146ac5f898024695c4dc9a.zip
xmr-stak-38c0955aad49587113146ac5f898024695c4dc9a.tar.gz
Merge pull request #1240 from psychocrypt/fix-parenthesesWarning
fix parentheses warning
-rw-r--r--xmrstak/backend/amd/amd_gpu/gpu.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmrstak/backend/amd/amd_gpu/gpu.cpp b/xmrstak/backend/amd/amd_gpu/gpu.cpp
index 8d0fd32..b3786a9 100644
--- a/xmrstak/backend/amd/amd_gpu/gpu.cpp
+++ b/xmrstak/backend/amd/amd_gpu/gpu.cpp
@@ -478,7 +478,7 @@ size_t InitOpenCLGpu(cl_context opencl_ctx, GpuContext* ctx, const char* source_
p_id++;
}
- if( ret = clGetProgramInfo(ctx->Program, CL_PROGRAM_BINARIES, num_devices * sizeof(char*), all_programs.data(),NULL) != CL_SUCCESS)
+ if((ret = clGetProgramInfo(ctx->Program, CL_PROGRAM_BINARIES, num_devices * sizeof(char*), all_programs.data(),NULL)) != CL_SUCCESS)
{
printer::inst()->print_msg(L1,"Error %s when calling clGetProgramInfo.", err_to_str(ret));
return ERR_OCL_API;
OpenPOWER on IntegriCloud