From 5ff76088b98e8b1db12fdb9c5a6c5795e3a5faa5 Mon Sep 17 00:00:00 2001 From: 1over Date: Sun, 25 Nov 2018 01:31:54 +0100 Subject: [PATCH] fixed memory issue in flann --- modules/flann/include/opencv2/flann/dist.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/modules/flann/include/opencv2/flann/dist.h b/modules/flann/include/opencv2/flann/dist.h index eedaeff..a65e712 100644 --- a/modules/flann/include/opencv2/flann/dist.h +++ b/modules/flann/include/opencv2/flann/dist.h @@ -462,10 +462,9 @@ struct Hamming } } #else // NO NEON and NOT GNUC - typedef unsigned long long pop_t; HammingLUT lut; result = lut(reinterpret_cast (a), - reinterpret_cast (b), size * sizeof(pop_t)); + reinterpret_cast (b), size); #endif return result; } -- 2.7.4