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

Fixed type cast warning in CV_ELEM_SIZE1 for cv::Mat::type
This commit is contained in:
Alexander Smorkalov 2024-01-23 09:18:43 +03:00 committed by GitHub
commit dcc4dcedba
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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))