From 731ee7bbd74f4f815d5acf1d6634446a0291c52f Mon Sep 17 00:00:00 2001 From: Vladislav Sovrasov Date: Wed, 24 May 2017 11:09:37 +0300 Subject: [PATCH] ximgproc: fix warning in OCL related code on Windows platform --- modules/ximgproc/src/anisodiff.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/ximgproc/src/anisodiff.cpp b/modules/ximgproc/src/anisodiff.cpp index e8603eb5a9..370482b898 100644 --- a/modules/ximgproc/src/anisodiff.cpp +++ b/modules/ximgproc/src/anisodiff.cpp @@ -228,7 +228,7 @@ static bool ocl_anisotropicDiffusion(InputArray src_, OutputArray dst_, k.args(ocl::KernelArg::ReadOnlyNoSize(src), ocl::KernelArg::WriteOnly(dst), ocl::KernelArg::PtrReadOnly(uexptab), alpha); - size_t globalsize[] = { cols, rows }; + size_t globalsize[] = { (size_t)cols, (size_t)rows }; if(!k.run(2, globalsize, NULL, true)) return false;