core: fix convertTo() AVX2 optimization
authorAlexander Alekhin <alexander.alekhin@intel.com>
Mon, 17 Jul 2017 12:02:14 +0000 (15:02 +0300)
committerAlexander Alekhin <alexander.alekhin@intel.com>
Mon, 17 Jul 2017 12:02:14 +0000 (15:02 +0300)
modules/core/src/convert.cpp

index 0955c78..d63b53b 100644 (file)
@@ -3678,7 +3678,7 @@ cvtScale_<short, int, float>( const short* src, size_t sstep,
         if (CV_CPU_HAS_SUPPORT_AVX2)
         {
             opt_AVX2::cvtScale_s16s32f32Line_AVX2(src, dst, scale, shift, size.width);
-            return;
+            continue;
         }
         #endif
         #if CV_SSE2