From 2bbafef8e1b19e129f4d387532e016cf2c46215b Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Wed, 13 Feb 2019 10:35:31 +0100 Subject: tracker/pt: add __restrict at right place --- tracker-pt/module/point_extractor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tracker-pt') diff --git a/tracker-pt/module/point_extractor.cpp b/tracker-pt/module/point_extractor.cpp index e6da2071..75f2da1a 100644 --- a/tracker-pt/module/point_extractor.cpp +++ b/tracker-pt/module/point_extractor.cpp @@ -57,7 +57,7 @@ static vec2 MeanShiftIteration(const cv::Mat1b &frame_gray, const vec2 ¤t_ vec2 com { 0, 0 }; for (int i = 0; i < frame_gray.rows; i++) { - auto frame_ptr = (uint8_t const* __restrict)frame_gray.ptr(i); + uint8_t const* const __restrict frame_ptr = frame_gray.ptr(i); for (int j = 0; j < frame_gray.cols; j++) { f val = frame_ptr[j]; -- cgit v1.2.3