diff --git a/include/magic_enum.hpp b/include/magic_enum.hpp index c6a48fb45..886f888c2 100644 --- a/include/magic_enum.hpp +++ b/include/magic_enum.hpp @@ -739,7 +739,7 @@ struct constexpr_hash_t(2166136261ULL); for (const auto c : value) { - acc = ((acc ^ static_cast(c)) * static_cast(16777619ULL)) & std::numeric_limits::max(); + acc = ((acc ^ static_cast(c)) * static_cast(16777619ULL)) & (std::numeric_limits::max)(); } return static_cast(acc); }