summaryrefslogtreecommitdiffstats
path: root/src/hash.c
diff options
context:
space:
mode:
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 3c0e47c..6c98bcf 100644
--- a/src/hash.c
+++ b/src/hash.c
@@ -330,7 +330,7 @@ zix_hash_insert_at(ZixHash* const hash,
entry->value = record;
// 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 max_load = (hash->n_entries / 2U) + (hash->n_entries / 8U);
const size_t new_count = hash->count + 1U;
if (new_count >= max_load) {
const ZixStatus st = grow(hash);