From c46546203f35816ea669d604746f49a8fac2ee2f Mon Sep 17 00:00:00 2001 From: Maria Dimashova Date: Thu, 25 Nov 2010 09:22:22 +0000 Subject: [PATCH] fixed compile error under win32 --- modules/features2d/include/opencv2/features2d/features2d.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/features2d/include/opencv2/features2d/features2d.hpp b/modules/features2d/include/opencv2/features2d/features2d.hpp index b7f551a..a291911 100644 --- a/modules/features2d/include/opencv2/features2d/features2d.hpp +++ b/modules/features2d/include/opencv2/features2d/features2d.hpp @@ -1804,7 +1804,7 @@ struct CV_EXPORTS L2 ResultType diff = a[i] - b[i]; result += diff*diff; } - return sqrt(result); + return (ResultType)sqrt((double)result); } }; -- 2.7.4