use unsigned int for indexed access
This commit is contained in:
parent
62b10d83be
commit
2271e4a5a4
1 changed files with 1 additions and 1 deletions
|
@ -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]);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue