Silenced a few -Wcast-align warnings in the headers.

We don't use -Wcast-align ourselves, but the headers trigger warnings
for those users who do, which is not nice.
This commit is contained in:
Roman Donchenko
2013-09-12 12:31:13 +04:00
parent caf9fdbdc3
commit fec697b390
5 changed files with 11 additions and 11 deletions

View File

@@ -386,7 +386,7 @@ inline size_t LshTable<unsigned char>::getKey(const unsigned char* feature) cons
{
// no need to check if T is dividable by sizeof(size_t) like in the Hamming
// distance computation as we have a mask
const size_t* feature_block_ptr = reinterpret_cast<const size_t*> (feature);
const size_t* feature_block_ptr = reinterpret_cast<const size_t*> ((const void*)feature);
// Figure out the subsignature of the feature
// Given the feature ABCDEF, and the mask 001011, the output will be