diff --git a/include/magic_enum.hpp b/include/magic_enum.hpp index 5ea8da3..fca7f5c 100644 --- a/include/magic_enum.hpp +++ b/include/magic_enum.hpp @@ -727,19 +727,19 @@ struct constexpr_hash_t(0xffffffffL); - for (const auto c : val) { + for (const auto c : value) { crc = (crc >> 8) ^ crc_table[(crc ^ static_cast(c)) & 0xff]; } return crc ^ 0xffffffffL; } struct secondary_hash { - constexpr std::uint32_t operator()(string_view val) const noexcept { + constexpr std::uint32_t operator()(string_view value) const noexcept { auto acc = static_cast(2166136261ULL); - for (const auto v : val) { - acc = ((acc ^ static_cast(v)) * static_cast(16777619ULL)) & std::numeric_limits::max(); + for (const auto c : value) { + acc = ((acc ^ static_cast(c)) * static_cast(16777619ULL)) & std::numeric_limits::max(); } return static_cast(acc); }