From 135701feac1e6134b1e12e7e0eda1710150b5eb8 Mon Sep 17 00:00:00 2001 From: Dmitry-Me Date: Fri, 6 Mar 2015 17:04:54 +0300 Subject: [PATCH] Double used as boolean for no reason --- modules/imgproc/src/imgwarp.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/imgproc/src/imgwarp.cpp b/modules/imgproc/src/imgwarp.cpp index 79ab3eca21..8a11515389 100644 --- a/modules/imgproc/src/imgwarp.cpp +++ b/modules/imgproc/src/imgwarp.cpp @@ -5454,7 +5454,7 @@ static bool ocl_warpTransform(InputArray _src, OutputArray _dst, InputArray _M0, const ocl::Device & dev = ocl::Device::getDefault(); int type = _src.type(), depth = CV_MAT_DEPTH(type), cn = CV_MAT_CN(type); - double doubleSupport = dev.doubleFPConfig() > 0; + const bool doubleSupport = dev.doubleFPConfig() > 0; int interpolation = flags & INTER_MAX; if( interpolation == INTER_AREA )