From 02f89df5e77ec7988f744d725e7d961d098d7e90 Mon Sep 17 00:00:00 2001
From: David Robillard <d@drobilla.net>
Date: Thu, 13 Aug 2020 19:49:43 +0200
Subject: Fix signed operand to bitwise operator

---
 zix/digest.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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;
-- 
cgit v1.2.1