mirror of
https://github.com/opencv/opencv.git
synced 2026-07-30 07:43:03 +04:00
COMP: Fix problem with narrowing in c++11
modules/core/src/arithm.cpp:345:51:
error: constant expression evaluates to 4294967295 which cannot be narrowed to type 'int' [-Wc++11-narrowing]
static int CV_DECL_ALIGNED(16) v64f_absmask[] = { 0xffffffff, 0x7fffffff, 0xffffffff, 0x7fffffff };
^~~~~~~~~~
Converted to unsigned int. This variable is only used to initialize a bit pattern anywhy for a 128bit type.
This commit is contained in:
@@ -341,8 +341,8 @@ FUNCTOR_CLOSURE_2arg(VMax, float, return _mm_max_ps(a, b));
|
||||
FUNCTOR_CLOSURE_2arg(VMax, double, return _mm_max_pd(a, b));
|
||||
|
||||
|
||||
static int CV_DECL_ALIGNED(16) v32f_absmask[] = { 0x7fffffff, 0x7fffffff, 0x7fffffff, 0x7fffffff };
|
||||
static int CV_DECL_ALIGNED(16) v64f_absmask[] = { 0xffffffff, 0x7fffffff, 0xffffffff, 0x7fffffff };
|
||||
static unsigned int CV_DECL_ALIGNED(16) v32f_absmask[] = { 0x7fffffff, 0x7fffffff, 0x7fffffff, 0x7fffffff };
|
||||
static unsigned int CV_DECL_ALIGNED(16) v64f_absmask[] = { 0xffffffff, 0x7fffffff, 0xffffffff, 0x7fffffff };
|
||||
|
||||
FUNCTOR_TEMPLATE(VAbsDiff);
|
||||
FUNCTOR_CLOSURE_2arg(VAbsDiff, uchar,
|
||||
|
||||
Reference in New Issue
Block a user