mirror of
https://github.com/opencv/opencv.git
synced 2024-11-29 13:47:32 +08:00
eliminated warning C4267
This commit is contained in:
parent
9bf2516eb1
commit
650f92f9cc
@ -2342,7 +2342,7 @@ struct Program::Impl
|
|||||||
handle = clCreateProgramWithSource((cl_context)ctx.ptr(), 1, &srcptr, &srclen, &retval);
|
handle = clCreateProgramWithSource((cl_context)ctx.ptr(), 1, &srcptr, &srclen, &retval);
|
||||||
if( handle && retval >= 0 )
|
if( handle && retval >= 0 )
|
||||||
{
|
{
|
||||||
int i, n = ctx.ndevices();
|
int i, n = (int)ctx.ndevices();
|
||||||
AutoBuffer<void*> deviceListBuf(n+1);
|
AutoBuffer<void*> deviceListBuf(n+1);
|
||||||
void** deviceList = deviceListBuf;
|
void** deviceList = deviceListBuf;
|
||||||
for( i = 0; i < n; i++ )
|
for( i = 0; i < n; i++ )
|
||||||
|
Loading…
Reference in New Issue
Block a user