aboutsummaryrefslogtreecommitdiff
path: root/stdlib
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2024-12-22 16:08:20 -0500
committerBruce Hill <bruce@bruce-hill.com>2024-12-22 16:08:20 -0500
commit5df498fc20e923f4ff90c4c8d43ff77da2e5536f (patch)
treef2e16dd83818ce2f39a509071588b8f3b4af1f9b /stdlib
parent6f1ed65de90c387c3e38867b592c8fa7c8cfa80a (diff)
Tweak bucket resize cap
Diffstat (limited to 'stdlib')
-rw-r--r--stdlib/tables.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/stdlib/tables.c b/stdlib/tables.c
index ac8bebc8..0ceb948f 100644
--- a/stdlib/tables.c
+++ b/stdlib/tables.c
@@ -254,7 +254,7 @@ public void *Table$reserve(Table_t *t, const void *key, const void *value, const
// Current resize policy: +50% at a time:
uint32_t newsize = (3*(uint32_t)t->bucket_info->count)/2;
if (unlikely(newsize > TABLE_MAX_BUCKETS))
- newsize = t->entries.length + 1;
+ newsize = TABLE_MAX_BUCKETS;
hashmap_resize_buckets(t, newsize, type);
}