From 16dd655dd370cf952d6c9e9e2a08483d81196bdc Mon Sep 17 00:00:00 2001 From: Marius Muja Date: Tue, 13 Sep 2011 06:08:38 +0000 Subject: [PATCH] Fixing ticket #1366 --- modules/flann/include/opencv2/flann/dist.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/flann/include/opencv2/flann/dist.h b/modules/flann/include/opencv2/flann/dist.h index 094fd3435c..1ea137fc53 100644 --- a/modules/flann/include/opencv2/flann/dist.h +++ b/modules/flann/include/opencv2/flann/dist.h @@ -630,6 +630,8 @@ struct HistIntersectionDistance while (a < last) { min0 = (ResultType)(*a < *b ? *a : *b); result += min0; + ++a; + ++b; } return result; }