Skip to content

Commit

Permalink
Fix for small bug when size_t is not 8 bytes.
Browse files Browse the repository at this point in the history
  • Loading branch information
Wolf committed Oct 16, 2016
1 parent a608afa commit 1a3de44
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion driver-opencl.c
Original file line number Diff line number Diff line change
Expand Up @@ -1500,8 +1500,10 @@ static int64_t opencl_scanhash(struct thr_info *thr, struct work *work,
{
if(BranchBufCount[i])
{
cl_ulong tmp = BranchBufCount[i];

// Threads
status = clSetKernelArg(clState->extra_kernels[i + 2], 4, sizeof(cl_ulong), BranchBufCount + i);
status = clSetKernelArg(clState->extra_kernels[i + 2], 4, sizeof(cl_ulong), &tmp);

if(status != CL_SUCCESS)
{
Expand Down

0 comments on commit 1a3de44

Please sign in to comment.