summaryrefslogtreecommitdiffhomepage
path: root/include/stc/cdeq.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/stc/cdeq.h')
-rw-r--r--include/stc/cdeq.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/stc/cdeq.h b/include/stc/cdeq.h
index cde2928c..b0575fe0 100644
--- a/include/stc/cdeq.h
+++ b/include/stc/cdeq.h
@@ -156,7 +156,7 @@ _cx_MEMB(_insert_uninit)(_cx_Self* self, const intptr_t idx, const intptr_t n) {
const intptr_t len = _cx_MEMB(_size)(self);
_cx_iter it = {._s=self};
if (len + n > self->capmask)
- if (!_cx_MEMB(_reserve)(self, len + n))
+ if (!_cx_MEMB(_reserve)(self, len*5/4 + n))
return it;
for (intptr_t i = len - 1, j = i + n; i >= idx; --i, --j)
*_cx_MEMB(_at_mut)(self, j) = *_cx_MEMB(_at)(self, i);