diff --git a/include/magic_enum.hpp b/include/magic_enum.hpp index 8b6712d..5ea8da3 100644 --- a/include/magic_enum.hpp +++ b/include/magic_enum.hpp @@ -730,7 +730,7 @@ struct constexpr_hash_t(0xffffffffL); for (const auto c : val) { - crc = (crc >> 8) ^ crc_table[(crc ^ c) & 0xff]; + crc = (crc >> 8) ^ crc_table[(crc ^ static_cast(c)) & 0xff]; } return crc ^ 0xffffffffL; }