Fixed type cast warning in CV_ELEM_SIZE1 for cv::Mat::type.

This commit is contained in:
Alexander Smorkalov 2024-01-22 12:08:55 +03:00
parent c739117a7c
commit 4e2c7221f2

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