From 25d7f64dfb13ea17f149bd53c684edbb920638ac Mon Sep 17 00:00:00 2001 From: neargye Date: Thu, 31 Mar 2022 18:19:58 +0400 Subject: [PATCH] clean-up --- include/magic_enum.hpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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); }