summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2015-03-22 00:50:00 +0100
committerMatthias Schiffer <mschiffer@universe-factory.net>2015-03-22 00:50:19 +0100
commit5266f01d3295e7ac79cf25674167382b86817019 (patch)
tree4525b60ef3f35eb1340f245af25b58f4907314e4 /src
parent0cd5398354d8ecae47afeef98b42b81b431ea165 (diff)
downloadfastd-5266f01d3295e7ac79cf25674167382b86817019.tar
fastd-5266f01d3295e7ac79cf25674167382b86817019.zip
vector: never reduce allocated size
Diffstat (limited to 'src')
-rw-r--r--src/vector.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/vector.c b/src/vector.c
index c2b4dc1..cdf1e65 100644
--- a/src/vector.c
+++ b/src/vector.c
@@ -59,8 +59,6 @@ void _fastd_vector_resize(fastd_vector_desc_t *desc, void **data, size_t n, size
while (alloc < n)
alloc <<= 1;
- while (alloc > n*3 && alloc > MIN_VECTOR_ALLOC)
- alloc >>= 1;
if (alloc != desc->allocated) {
desc->allocated = alloc;