Skip to content

Commit

Permalink
Fix CID 1393663 (Big parameter passed by value)
Browse files Browse the repository at this point in the history
Signed-off-by: Stefan Weil <[email protected]>
  • Loading branch information
stweil committed Jun 30, 2018
1 parent 53596f7 commit c9737c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/opencl/openclwrapper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -647,7 +647,7 @@ int OpenclDevice::SetKernelEnv( KernelEnv *envInfo )
return 1;
}

static cl_mem allocateZeroCopyBuffer(KernelEnv rEnv, l_uint32 *hostbuffer,
static cl_mem allocateZeroCopyBuffer(const KernelEnv &rEnv, l_uint32 *hostbuffer,
size_t nElements, cl_mem_flags flags,
cl_int *pStatus) {
cl_mem membuffer =
Expand Down

0 comments on commit c9737c7

Please sign in to comment.