From 54081f262efc468facfcb12296dd85909b8395bd Mon Sep 17 00:00:00 2001 From: Anatoly Baksheev Date: Mon, 26 Jul 2010 14:16:19 +0000 Subject: [PATCH] fixed compiler error for win32 --- modules/features2d/src/calonder.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/features2d/src/calonder.cpp b/modules/features2d/src/calonder.cpp index 458f0104fb..9809d42731 100644 --- a/modules/features2d/src/calonder.cpp +++ b/modules/features2d/src/calonder.cpp @@ -308,7 +308,7 @@ Mat createCompressionMatrix( int rows, int cols, int distrType ) } else if( distrType == CalonderClassifier::COMPRESS_DISTR_BERNOULLI ) { - float par = (float)(1./sqrt(rows)); + float par = (float)(1./sqrt((float)rows)); for( int y = 0; y < rows; y++ ) for( int x = 0; x < cols; x++ ) mtr.at(y,x) = rng(2)==0 ? par : -par;