From fb5dca7ee80621fe17e9ab542a7c4fe521ba4193 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Mon, 10 Apr 2023 11:21:23 +0200 Subject: fix ci --- src/world.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/world.cpp b/src/world.cpp index 54096608..5a6e505f 100644 --- a/src/world.cpp +++ b/src/world.cpp @@ -17,7 +17,10 @@ size_t std::hash::operator()(const chunk_coords_& coord) const no else x ^= size_t(uint8_t(coord.z-chunk_min_z) & 0xf) * size_t(1664525); - return int_hash(x); + if constexpr(sizeof(size_t) > 4) + return int_hash(uint64_t(x)); + else + return int_hash(uint32_t(x)); } namespace floormat { -- cgit v1.2.3