use unsigned int for indexed access

This commit is contained in:
Artem Pavlenko 2017-10-31 10:52:09 +01:00
parent 62b10d83be
commit 2271e4a5a4

View file

@ -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<unsigned>(str[off]);
}