From 389bd146c404dd70e3ebc60ba4fa27ced2135b29 Mon Sep 17 00:00:00 2001 From: Alexander Shishkov Date: Tue, 31 May 2011 22:03:55 +0000 Subject: [PATCH] fixed compilation problems with new SIFT on MacOs --- modules/features2d/src/sift.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/features2d/src/sift.cpp b/modules/features2d/src/sift.cpp index 5fd58ae87a..5ba472ca9d 100644 --- a/modules/features2d/src/sift.cpp +++ b/modules/features2d/src/sift.cpp @@ -1561,7 +1561,7 @@ static void fillFeatureData( feature& feat, const SiftParams& params ) ddata->intvl = is + 1; ddata->subintvl = s - is; - ddata->scl_octv = params.sigma0 * pow(2.0, s / params.S); + ddata->scl_octv = params.sigma0 * pow(2.0, static_cast(s / params.S)); } inline void keyPointToFeature( const KeyPoint& keypoint, feature& feat, const SiftParams& params )