mirror of
https://github.com/ChaiScript/ChaiScript.git
synced 2025-12-07 01:06:54 +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;
|
std::uint32_t hash = 0;
|
||||||
|
|
||||||
while (begin != end) {
|
while (begin != end) {
|
||||||
hash += *begin;
|
hash += std::uint32_t(*begin);
|
||||||
hash += hash << 10;
|
hash += hash << 10;
|
||||||
hash ^= hash >> 6;
|
hash ^= hash >> 6;
|
||||||
++begin;
|
++begin;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user