From d6dc6df33dc666158ab47a44704d452088a6f90b Mon Sep 17 00:00:00 2001 From: Krishna Vedala <7001608+kvedala@users.noreply.github.com> Date: Wed, 22 Jul 2020 12:54:22 -0400 Subject: [PATCH] docs + vartype fix --- hash/hash_sdbm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hash/hash_sdbm.c b/hash/hash_sdbm.c index 0f7a15ea..6e836651 100644 --- a/hash/hash_sdbm.c +++ b/hash/hash_sdbm.c @@ -13,12 +13,12 @@ * @brief SDBM algorithm implementation * * @param s NULL terminated string to hash - * @return 64-bit + * @return 64-bit hash result */ uint64_t sdbm(const char* s) { uint64_t hash = 0; - int i = 0; + size_t i = 0; while (s[i] != '\0') { hash = s[i] + (hash << 6) + (hash << 16) - hash;