From 6c3e769f328d6930f989b54eba9dcdc48257c0fe Mon Sep 17 00:00:00 2001 From: Sergiu Dotenco Date: Tue, 28 Aug 2012 17:21:06 +0200 Subject: [PATCH] eliminated type conversion warnings --- modules/imgproc/src/smooth.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/imgproc/src/smooth.cpp b/modules/imgproc/src/smooth.cpp index 0fe1b6be4..8ec6f6d79 100644 --- a/modules/imgproc/src/smooth.cpp +++ b/modules/imgproc/src/smooth.cpp @@ -1325,7 +1325,7 @@ public: #if CV_SSE3 if( haveSSE3 ) { - __m128 _val0 = _mm_set1_ps(val0); + __m128 _val0 = _mm_set1_ps(static_cast(val0)); const __m128 _signMask = _mm_load_ps((const float*)bufSignMask); for( ; k <= maxk - 4; k += 4 ) @@ -1373,9 +1373,9 @@ public: #if CV_SSE3 if( haveSSE3 ) { - const __m128 _b0 = _mm_set1_ps(b0); - const __m128 _g0 = _mm_set1_ps(g0); - const __m128 _r0 = _mm_set1_ps(r0); + const __m128 _b0 = _mm_set1_ps(static_cast(b0)); + const __m128 _g0 = _mm_set1_ps(static_cast(g0)); + const __m128 _r0 = _mm_set1_ps(static_cast(r0)); const __m128 _signMask = _mm_load_ps((const float*)bufSignMask); for( ; k <= maxk - 4; k += 4 )