eliminated warning C4267
authorIlya Lavrenov <ilya.lavrenov@itseez.com>
Thu, 21 Nov 2013 14:27:07 +0000 (18:27 +0400)
committerIlya Lavrenov <ilya.lavrenov@itseez.com>
Thu, 21 Nov 2013 14:27:07 +0000 (18:27 +0400)
modules/core/src/ocl.cpp

index f706487..da53ab5 100644 (file)
@@ -2342,7 +2342,7 @@ struct Program::Impl
         handle = clCreateProgramWithSource((cl_context)ctx.ptr(), 1, &srcptr, &srclen, &retval);
         if( handle && retval >= 0 )
         {
-            int i, n = ctx.ndevices();
+            int i, n = (int)ctx.ndevices();
             AutoBuffer<void*> deviceListBuf(n+1);
             void** deviceList = deviceListBuf;
             for( i = 0; i < n; i++ )