From 982503e9a8724465570ccab65e8e5c9656940b5f Mon Sep 17 00:00:00 2001 From: Alexander Alekhin Date: Wed, 13 Oct 2021 01:14:37 +0000 Subject: [PATCH] core: ensure 'int' result from CV_POPCNT_U64(x) --- modules/core/include/opencv2/core/cv_cpu_dispatch.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/core/include/opencv2/core/cv_cpu_dispatch.h b/modules/core/include/opencv2/core/cv_cpu_dispatch.h index 540fbb605c..e92798d6c9 100644 --- a/modules/core/include/opencv2/core/cv_cpu_dispatch.h +++ b/modules/core/include/opencv2/core/cv_cpu_dispatch.h @@ -55,7 +55,7 @@ # ifdef _MSC_VER # include # if defined(_M_X64) -# define CV_POPCNT_U64 _mm_popcnt_u64 +# define CV_POPCNT_U64 (int)_mm_popcnt_u64 # endif # define CV_POPCNT_U32 _mm_popcnt_u32 # else