summaryrefslogtreecommitdiffhomepage
path: root/include/stc/cstack.h
diff options
context:
space:
mode:
authortylov <[email protected]>2023-07-24 22:57:44 +0200
committertylov <[email protected]>2023-07-24 22:57:44 +0200
commit78ba677b59a8cecd69f733fca1a37ad01b38320f (patch)
tree7a045c9c60ff74f6b04c10ce05921a3b3782c499 /include/stc/cstack.h
parentf1f0c01e798eb3217e62a43de660723173984547 (diff)
downloadSTC-modified-78ba677b59a8cecd69f733fca1a37ad01b38320f.tar.gz
STC-modified-78ba677b59a8cecd69f733fca1a37ad01b38320f.zip
Updated and fixed benchmarks and performance graphs.
Diffstat (limited to 'include/stc/cstack.h')
-rw-r--r--include/stc/cstack.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/stc/cstack.h b/include/stc/cstack.h
index f8640ed1..8fb176e1 100644
--- a/include/stc/cstack.h
+++ b/include/stc/cstack.h
@@ -103,7 +103,7 @@ STC_INLINE bool _cx_MEMB(_reserve)(_cx_Self* self, intptr_t n) {
STC_INLINE _cx_value* _cx_MEMB(_append_uninit)(_cx_Self *self, intptr_t n) {
intptr_t len = self->_len;
- if (!_cx_MEMB(_reserve)(self, len + n)) return NULL;
+ if (!_cx_MEMB(_reserve)(self, len*3/2 + n)) return NULL;
self->_len += n;
return self->data + len;
}