diff --git a/modules/core/src/parallel.cpp b/modules/core/src/parallel.cpp index 82ca50411a..9ff31fa7f7 100644 --- a/modules/core/src/parallel.cpp +++ b/modules/core/src/parallel.cpp @@ -379,8 +379,8 @@ namespace void operator ()() const // run parallel job { - cv::Range stripeRange = this->stripeRange(); - tbb::parallel_for(tbb::blocked_range(stripeRange.start, stripeRange.end), *this); + cv::Range range = this->stripeRange(); + tbb::parallel_for(tbb::blocked_range(range.start, range.end), *this); } }; #elif defined HAVE_CSTRIPES || defined HAVE_OPENMP