Merge pull request #24900 from asmorkalov:as/windows_warn_fix_5.x

Fixed type cast warning in CV_ELEM_SIZE1 for cv::Mat::type
pull/24912/head
Alexander Smorkalov 11 months ago committed by GitHub
commit dcc4dcedba
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      modules/core/include/opencv2/core/cvdef.h

@ -499,7 +499,7 @@ Cv64suf;
CV_16U - 2 bytes
...
*/
#define CV_ELEM_SIZE1(type) ((int)(0x4881228442211ULL >> (CV_MAT_DEPTH(type) * 4)) & 15)
#define CV_ELEM_SIZE1(type) ((int)((0x4881228442211ULL >> (CV_MAT_DEPTH(type) * 4)) & 15))
#define CV_ELEM_SIZE(type) (CV_MAT_CN(type)*CV_ELEM_SIZE1(type))

Loading…
Cancel
Save