From 1c440b76eeaf4968debe18973435832200a0a12f Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 19 Aug 2022 15:14:24 -0400 Subject: Avoid mixing signed and unsigned integers --- src/digest.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/digest.c') diff --git a/src/digest.c b/src/digest.c index 3af9e8c..5853e37 100644 --- a/src/digest.c +++ b/src/digest.c @@ -113,7 +113,7 @@ zix_digest64_aligned(const uint64_t seed, const void* const key, size_t len) static inline uint32_t rotl32(const uint32_t val, const uint32_t bits) { - return ((val << bits) | (val >> (32 - bits))); + return ((val << bits) | (val >> (32U - bits))); } static inline uint32_t -- cgit v1.2.1