Commit e5229a18 authored by Alexander Alekhin's avatar Alexander Alekhin

Merge pull request #556 from polarfuchs99:master

parents 5c673477 c2b55897
......@@ -101,7 +101,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;
}
......
......@@ -123,7 +123,7 @@ uchar CV_BinaryDescriptorMatcherTest::invertSingleBits( uchar dividend_char, int
/* 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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment