diff --git a/include/ankerl/unordered_dense.h b/include/ankerl/unordered_dense.h index 0835342..5fcc763 100644 --- a/include/ankerl/unordered_dense.h +++ b/include/ankerl/unordered_dense.h @@ -334,7 +334,7 @@ struct hash>> { using is_avalanching = void; auto operator()(Enum e) const noexcept -> std::uint64_t { using underlying = std::underlying_type_t; - return detail::wyhash::hash(static_cast(e)); + return detail::wyhash::hash(uint64_t(underlying(e))); } };