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/hash.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/hash.c') 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) { -- cgit v1.2.1