From: Ilya Lavrenov Date: Fri, 22 Nov 2013 14:56:03 +0000 (+0400) Subject: fixed error in setting kernel arguments X-Git-Tag: accepted/tizen/6.0/unified/20201030.111113~3685^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1af95ea12c1b43898aaa1563bede2437c102f8c2;p=platform%2Fupstream%2Fopencv.git fixed error in setting kernel arguments --- diff --git a/modules/core/src/ocl.cpp b/modules/core/src/ocl.cpp index da53ab5..8cd0047 100644 --- a/modules/core/src/ocl.cpp +++ b/modules/core/src/ocl.cpp @@ -1226,13 +1226,13 @@ struct UMat2D { UMat2D(const UMat& m) { - offset = m.offset; - step = m.step; + offset = (int)m.offset; + step = (int)m.step; rows = m.rows; cols = m.cols; } - size_t offset; - size_t step; + int offset; + int step; int rows; int cols; }; @@ -1241,16 +1241,16 @@ struct UMat3D { UMat3D(const UMat& m) { - offset = m.offset; - step = m.step.p[1]; - slicestep = m.step.p[0]; - slices = m.size.p[0]; + offset = (int)m.offset; + step = (int)m.step.p[1]; + slicestep = (int)m.step.p[0]; + slices = (int)m.size.p[0]; rows = m.size.p[1]; cols = m.size.p[2]; } - size_t offset; - size_t slicestep; - size_t step; + int offset; + int slicestep; + int step; int slices; int rows; int cols;