projects
/
profile
/
ivi
/
opencv.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9bf2516
)
eliminated warning C4267
author
Ilya Lavrenov
<ilya.lavrenov@itseez.com>
Thu, 21 Nov 2013 14:27:07 +0000
(18:27 +0400)
committer
Ilya Lavrenov
<ilya.lavrenov@itseez.com>
Thu, 21 Nov 2013 14:27:07 +0000
(18:27 +0400)
modules/core/src/ocl.cpp
patch
|
blob
|
history
diff --git
a/modules/core/src/ocl.cpp
b/modules/core/src/ocl.cpp
index
f706487
..
da53ab5
100644
(file)
--- 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<void*> deviceListBuf(n+1);
void** deviceList = deviceListBuf;
for( i = 0; i < n; i++ )