summaryrefslogtreecommitdiffhomepage
path: root/test/hash.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/hash.cpp')
-rw-r--r--test/hash.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/hash.cpp b/test/hash.cpp
index b5eed2b0..63a2f568 100644
--- a/test/hash.cpp
+++ b/test/hash.cpp
@@ -44,7 +44,7 @@ template<int16_t CoordMax, int8_t ZMax, uint32_t MaxCollisions>
for (int8_t k = 0; k <= ZMax; k++)
{
auto p = global_coords{i, j, k};
- auto h = hash_buf(&p, sizeof p);
+ auto h = p.hash();
h %= BucketCount;
auto ref = bitset[h];
if (ref) [[unlikely]]