summaryrefslogtreecommitdiffstats
path: root/src/hash.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/hash.c
parent171aa2a60a8deeaf7b7692a0ecb6de56df1607f8 (diff)
downloadzix-1c440b76eeaf4968debe18973435832200a0a12f.tar.gz
zix-1c440b76eeaf4968debe18973435832200a0a12f.tar.bz2
zix-1c440b76eeaf4968debe18973435832200a0a12f.zip
Avoid mixing signed and unsigned integers
Diffstat (limited to 'src/hash.c')
-rw-r--r--src/hash.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/hash.c b/src/hash.c
index 750156f..7fc345d 100644
--- a/src/hash.c
+++ b/src/hash.c
@@ -328,7 +328,7 @@ zix_hash_insert_at(ZixHash* const hash,
// Update size and rehash if we exceeded the maximum load
const size_t max_load = hash->n_entries / 2U + hash->n_entries / 8U;
- const size_t new_count = hash->count + 1;
+ const size_t new_count = hash->count + 1U;
if (new_count >= max_load) {
const ZixStatus st = grow(hash);
if (st) {