diff --git a/modules/cudev/include/opencv2/cudev/util/type_traits.hpp b/modules/cudev/include/opencv2/cudev/util/type_traits.hpp index 992e50bb6..ca800c0b7 100644 --- a/modules/cudev/include/opencv2/cudev/util/type_traits.hpp +++ b/modules/cudev/include/opencv2/cudev/util/type_traits.hpp @@ -152,7 +152,7 @@ template struct TypeTraits template struct LargerType { typedef typename SelectIf< - VecTraits::cn != VecTraits::cn, + unsigned(VecTraits::cn) != unsigned(VecTraits::cn), void, typename MakeVec< typename type_traits_detail::LargerDepth<