hash.hpp: explicitly cast to uint32_t

This commit is contained in:
Bernd Amend 2021-05-22 13:51:24 +02:00
parent e62f0d3296
commit bd933592a9

View File

@ -67,7 +67,7 @@ namespace chaiscript
std::uint32_t hash = 0;
while (begin != end) {
hash += *begin;
hash += std::uint32_t(*begin);
hash += hash << 10;
hash ^= hash >> 6;
++begin;