diff --git a/cpp/kiss_icp/core/VoxelHashMap.hpp b/cpp/kiss_icp/core/VoxelHashMap.hpp index 92a3d167..8ffe9ed9 100644 --- a/cpp/kiss_icp/core/VoxelHashMap.hpp +++ b/cpp/kiss_icp/core/VoxelHashMap.hpp @@ -46,7 +46,7 @@ struct VoxelHashMap { struct VoxelHash { size_t operator()(const Voxel &voxel) const { const uint32_t *vec = reinterpret_cast(voxel.data()); - return ((1 << 20) - 1) & (vec[0] * 73856093 ^ vec[1] * 19349669 ^ vec[2] * 83492791); + return (vec[0] * 73856093 ^ vec[1] * 19349669 ^ vec[2] * 83492791); } };