mirror of https://github.com/davisking/dlib.git
Changed slightly to avoid compiler error in gcc 4.1.2
This commit is contained in:
parent
24e3fe504c
commit
aa4d7caa37
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue