diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2018-12-07 08:43:03 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2018-12-08 21:30:48 +0100 |
commit | 709fe557a3a5c2dc8675472dac9325f8efdff004 (patch) | |
tree | fa257eae76fc50d3cbe7b69b5c423108c170af90 /cv/video-widget.cpp | |
parent | 788cfe69a1668dfd7e6bca16907de696e6063fbe (diff) |
clean up a bit
Diffstat (limited to 'cv/video-widget.cpp')
-rw-r--r-- | cv/video-widget.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cv/video-widget.cpp b/cv/video-widget.cpp index d93429cb..c80bd96b 100644 --- a/cv/video-widget.cpp +++ b/cv/video-widget.cpp @@ -53,7 +53,7 @@ void cv_video_widget::update_image(const cv::Mat& frame) else img = &_frame2; - const unsigned nbytes = 4 * img->rows * img->cols; + const unsigned nbytes = unsigned(4 * img->rows * img->cols); vec.resize(nbytes); @@ -70,7 +70,7 @@ void cv_video_widget::update_image(const QImage& img) if (freshp) return; - const unsigned nbytes = img.bytesPerLine() * img.height(); + const unsigned nbytes = unsigned(img.bytesPerLine() * img.height()); vec.resize(nbytes); |