type_info: char to unsigned char conversion before using the value

This commit is contained in:
Michele Caini 2024-10-23 08:29:51 +02:00
parent 2b4a0f158b
commit 6e0fe7b8c6

View File

@ -21,7 +21,7 @@ namespace internal {
auto value = offset;
for(auto &&curr: view) {
value = (value ^ static_cast<std::uint32_t>(curr)) * prime;
value = (value ^ static_cast<std::uint32_t>(static_cast<unsigned char>(curr))) * prime;
}
return value;