summaryrefslogtreecommitdiffhomepage
path: root/stc
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2021-04-27 10:43:55 +0200
committerTyge Løvset <[email protected]>2021-04-27 10:43:55 +0200
commit229797dbffd91cb12dc3930dc185ea63e5eb0896 (patch)
tree0c1e8ca42aefb05c8681e2bddd814ca34c103c96 /stc
parent26b91f185828de6601255b47608f2fe57f9d8838 (diff)
downloadSTC-modified-229797dbffd91cb12dc3930dc185ea63e5eb0896.tar.gz
STC-modified-229797dbffd91cb12dc3930dc185ea63e5eb0896.zip
Fix on previous commit cdeq: min alloc was too small.
Diffstat (limited to 'stc')
-rw-r--r--stc/cdeq.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/stc/cdeq.h b/stc/cdeq.h
index 54a7029c..ffbb310b 100644
--- a/stc/cdeq.h
+++ b/stc/cdeq.h
@@ -225,7 +225,7 @@ static struct cdeq_rep _cdeq_inits = {0, 0};
if (at_front && nfront >= n || !at_front && nback >= n) \
return; \
if (len*1.2 + n > cap) { \
- cap = (size_t) (len*1.8) + n + 6; \
+ cap = (size_t) (len*1.8) + n + 7; \
rep = (struct cdeq_rep*) c_realloc(rep->cap ? rep : NULL, \
offsetof(struct cdeq_rep, base) + cap*sizeof(Value)); \
rep->size = len, rep->cap = cap; \