From 9e05d18d4273181357ee487199a67bcb0f4c3d09 Mon Sep 17 00:00:00 2001 From: vbystricky Date: Wed, 25 Dec 2013 18:05:07 +0400 Subject: [PATCH] Fix compilation warnings --- modules/imgproc/src/filter.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/imgproc/src/filter.cpp b/modules/imgproc/src/filter.cpp index 24f222e..3aca1eb 100644 --- a/modules/imgproc/src/filter.cpp +++ b/modules/imgproc/src/filter.cpp @@ -3371,9 +3371,9 @@ static bool ocl_sepRowFilter2D( UMat &src, UMat &buf, Mat &kernelX, int anchor, return false; } - bool extra_extrapolation = src.rows < ((-radiusY + globalsize[1]) >> 1) + 1; + bool extra_extrapolation = src.rows < (int)((-radiusY + globalsize[1]) >> 1) + 1; extra_extrapolation |= src.rows < radiusY; - extra_extrapolation |= src.cols < ((-radiusX + globalsize[0] + 8 * localsize[0] + 3) >> 1) + 1; + extra_extrapolation |= src.cols < (int)((-radiusX + globalsize[0] + 8 * localsize[0] + 3) >> 1) + 1; extra_extrapolation |= src.cols < radiusX; char build_options[1024]; sprintf(build_options, "-D RADIUSX=%d -D LSIZE0=%d -D LSIZE1=%d -D CN=%d -D %s -D %s -D %s", -- 2.7.4