Skip to content

Commit

Permalink
eliminated warning C4267
Browse files Browse the repository at this point in the history
  • Loading branch information
ilya-lavrenov committed Nov 21, 2013
1 parent 9bf2516 commit 650f92f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/core/src/ocl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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++ )
Expand Down

0 comments on commit 650f92f

Please sign in to comment.