1
0
mirror of https://github.com/opencv/opencv_contrib.git synced 2025-10-21 06:11:09 +08:00

fix vs2010 samples build

This commit is contained in:
Bleach666
2016-03-18 14:48:16 +02:00
parent fb55f29ff7
commit 9677bd7fca
2 changed files with 4 additions and 3 deletions

View File

@@ -111,7 +111,7 @@ uchar invertSingleBits( uchar dividend_char, int numBits )
/* reconvert to decimal */
uchar result = 0;
for ( int i = (int) bin_vector.size() - 1; i >= 0; i-- )
result += (uchar) ( bin_vector[i] * pow( 2, i ) );
result += (uchar) ( bin_vector[i] * (1 << i) );
return result;
}