summaryrefslogtreecommitdiffhomepage
path: root/cv/video-widget.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2019-02-12 12:56:36 +0100
committerStanislaw Halik <sthalik@misaki.pl>2019-02-13 10:29:37 +0100
commit9d1d9154a8d0fdd2c41a061acaf9fe4d947757fa (patch)
tree21a69889132380da4213e804dd1646b4082ad088 /cv/video-widget.cpp
parent6ecaabf95842b6048088890e28c39f1578ab35cf (diff)
fix signedness/conversion warnings
Diffstat (limited to 'cv/video-widget.cpp')
-rw-r--r--cv/video-widget.cpp2
1 files changed, 1 insertions, 1 deletions
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);