diff options
author | David Robillard <d@drobilla.net> | 2020-08-13 19:49:43 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2020-08-14 09:43:38 +0200 |
commit | 02f89df5e77ec7988f744d725e7d961d098d7e90 (patch) | |
tree | e53ad6038e04c01c87316ba6578fbad36d173f3b /zix | |
parent | b52e3f8db950cc8f3397fad00d0fcc8e611004f7 (diff) | |
download | zix-02f89df5e77ec7988f744d725e7d961d098d7e90.tar.gz zix-02f89df5e77ec7988f744d725e7d961d098d7e90.tar.bz2 zix-02f89df5e77ec7988f744d725e7d961d098d7e90.zip |
Fix signed operand to bitwise operator
Diffstat (limited to 'zix')
-rw-r--r-- | zix/digest.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/zix/digest.c b/zix/digest.c index 4fc7608..889cfde 100644 --- a/zix/digest.c +++ b/zix/digest.c @@ -99,7 +99,7 @@ zix_digest_add(uint32_t hash, const void* const buf, const size_t len) const uint8_t* str = (const uint8_t*)buf; for (size_t i = 0; i < len; ++i) { - hash = (hash << 5) + hash + str[i]; + hash = (hash << 5u) + hash + str[i]; } return hash; |