diff --git a/cpp/kiss_icp/core/Preprocessing.cpp b/cpp/kiss_icp/core/Preprocessing.cpp index d9e1d805..de315093 100644 --- a/cpp/kiss_icp/core/Preprocessing.cpp +++ b/cpp/kiss_icp/core/Preprocessing.cpp @@ -37,7 +37,7 @@ using Voxel = Eigen::Vector3i; 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); } };