mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2024-12-05 02:47:00 +08:00
Fix CID 1393663 (Big parameter passed by value)
Signed-off-by: Stefan Weil <sw@weilnetz.de>
This commit is contained in:
parent
53596f7837
commit
c9737c7f93
@ -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 =
|
||||
|
Loading…
Reference in New Issue
Block a user