diff options
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);  | 
