From 5e6637ecde5771cb5210c3ec37eaa9d6679dc432 Mon Sep 17 00:00:00 2001 From: Abdessattar Sassi <457645+abdes@users.noreply.github.com> Date: Thu, 31 Mar 2022 17:48:27 +0400 Subject: [PATCH] fix: GCC warning [-Werror=sign-conversion] (#176) --- include/magic_enum.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }