From 650f92f9cc7e373c7871099496b6d86a8590baab Mon Sep 17 00:00:00 2001 From: Ilya Lavrenov Date: Thu, 21 Nov 2013 18:27:07 +0400 Subject: [PATCH] eliminated warning C4267 --- modules/core/src/ocl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/core/src/ocl.cpp b/modules/core/src/ocl.cpp index f706487ac8..da53ab5de8 100644 --- a/modules/core/src/ocl.cpp +++ b/modules/core/src/ocl.cpp @@ -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 deviceListBuf(n+1); void** deviceList = deviceListBuf; for( i = 0; i < n; i++ )