From 2271e4a5a4eb221b9431c6364272997658743200 Mon Sep 17 00:00:00 2001 From: Artem Pavlenko Date: Tue, 31 Oct 2017 10:52:09 +0100 Subject: [PATCH] use unsigned int for indexed access --- include/mapnik/util/name_to_int.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/mapnik/util/name_to_int.hpp b/include/mapnik/util/name_to_int.hpp index 096a1f085..91148d416 100644 --- a/include/mapnik/util/name_to_int.hpp +++ b/include/mapnik/util/name_to_int.hpp @@ -22,7 +22,7 @@ namespace mapnik { namespace util { -constexpr unsigned name_to_int(const char *str, int off = 0) +constexpr unsigned name_to_int(const char *str, unsigned off = 0) { return !str[off] ? 5381 : (name_to_int(str, off + 1) * 33) ^ static_cast(str[off]); }