summaryrefslogtreecommitdiffstats
path: root/src/digest.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2022-08-19 15:14:24 -0400
committerDavid Robillard <d@drobilla.net>2022-08-19 15:14:24 -0400
commit1c440b76eeaf4968debe18973435832200a0a12f (patch)
treed722c92fa8c16016d67eedc8d683c24f837a8d61 /src/digest.c
parent171aa2a60a8deeaf7b7692a0ecb6de56df1607f8 (diff)
downloadzix-1c440b76eeaf4968debe18973435832200a0a12f.tar.gz
zix-1c440b76eeaf4968debe18973435832200a0a12f.tar.bz2
zix-1c440b76eeaf4968debe18973435832200a0a12f.zip
Avoid mixing signed and unsigned integers
Diffstat (limited to 'src/digest.c')
-rw-r--r--src/digest.c2
1 files changed, 1 insertions, 1 deletions
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