From 25cf33d5c83ea3b5d98ee78b9db1c933ed5e703c Mon Sep 17 00:00:00 2001 From: matze Date: Fri, 2 Sep 2016 21:09:25 +0200 Subject: [PATCH] Warning fixed by adding a cast to char --- modules/imgproc/src/contours.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/imgproc/src/contours.cpp b/modules/imgproc/src/contours.cpp index b27c1552dc..dde5421c75 100644 --- a/modules/imgproc/src/contours.cpp +++ b/modules/imgproc/src/contours.cpp @@ -1048,7 +1048,7 @@ cvFindNextContour( CvContourScanner scanner ) goto _next_contour; } else if (haveSSE2) { - __m128i v_prev = _mm_set1_epi8(prev); + __m128i v_prev = _mm_set1_epi8((char)prev); int v_size = width - 32; for (; x <= v_size; x += 32) {