1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-29 15:23:05 +04:00

Add static integer casting to get rid of the warning, safer

This commit is contained in:
usernotfound-101
2026-03-13 22:25:08 +05:30
parent d719c6d84a
commit 3470f5b35b
+3 -1
View File
@@ -83,7 +83,9 @@ cvMixChannels( const CvArr** src, int src_count,
CvArr** dst, int dst_count,
const int* from_to, int pair_count )
{
cv::AutoBuffer<cv::Mat> buf(src_count + dst_count);
CV_Assert(src_count >= 0 && dst_count >= 0);
size_t buf_size = static_cast<size_t>(src_count) + static_cast<size_t>(dst_count);
cv::AutoBuffer<cv::Mat> buf(buf_size);
int i;
for( i = 0; i < src_count; i++ )