Changed slightly to avoid compiler error in gcc 4.1.2

This commit is contained in:
Davis King 2011-08-09 18:07:39 -04:00
parent 24e3fe504c
commit aa4d7caa37
1 changed files with 1 additions and 1 deletions

View File

@ -18,7 +18,7 @@ namespace dlib
)
{
const std::pair<uint64,uint64> h = murmur_hash3_128bit_3(k1,k2,k3);
const uint64 mask = 0xFFFFFFFFFF;
const uint64 mask = 0xFFFFFFFFFFLLU;
const double max = mask+1;
return static_cast<double>(h.first&mask)/max;
}