From bd933592a99be546f0c58fa19dc52be951231f6e Mon Sep 17 00:00:00 2001 From: Bernd Amend Date: Sat, 22 May 2021 13:51:24 +0200 Subject: [PATCH] hash.hpp: explicitly cast to uint32_t --- include/chaiscript/utility/hash.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/chaiscript/utility/hash.hpp b/include/chaiscript/utility/hash.hpp index ecbc6f24..f1252b2c 100644 --- a/include/chaiscript/utility/hash.hpp +++ b/include/chaiscript/utility/hash.hpp @@ -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;