mirror of
https://github.com/ChaiScript/ChaiScript.git
synced 2025-12-06 16:57:04 +08:00
hash.hpp: explicitly cast to uint32_t
This commit is contained in:
parent
e62f0d3296
commit
bd933592a9
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user