From 9d1d9154a8d0fdd2c41a061acaf9fe4d947757fa Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Tue, 12 Feb 2019 12:56:36 +0100 Subject: fix signedness/conversion warnings --- cv/video-widget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cv/video-widget.cpp') diff --git a/cv/video-widget.cpp b/cv/video-widget.cpp index 7cc6ca2d..7240814f 100644 --- a/cv/video-widget.cpp +++ b/cv/video-widget.cpp @@ -67,7 +67,7 @@ void cv_video_widget::update_image(const cv::Mat& frame) frame_color = frame_scaled; int stride = frame_color->step.p[0], rows = frame_color->rows; - int nbytes = rows * stride; + unsigned nbytes = (unsigned)(rows * stride); vec.resize(nbytes); vec.shrink_to_fit(); std::memcpy(vec.data(), frame_color->data, nbytes); -- cgit v1.2.3