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:
@@ -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++ )
|
||||
|
||||
Reference in New Issue
Block a user