summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tanja.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tanja.c b/tanja.c
index b7497dc..10663fd 100644
--- a/tanja.c
+++ b/tanja.c
@@ -376,7 +376,7 @@ static inline void tn_map_grow(tn_el *m, int new) {
if(!s)
s = 32;
while(s < ((m->count+new)*4)/3)
- s <<= 2;
+ s <<= 1;
assert(s < UINT16_MAX); // Might want to handle this
if(s == m->size)
return;