summaryrefslogtreecommitdiffhomepage
path: root/include/stc/cstack.h
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2022-04-15 23:30:24 +0200
committerTyge Løvset <[email protected]>2022-04-15 23:30:24 +0200
commit9723c34b18448cd28b10ac70d10f8bc156e6874f (patch)
treeabc4538d5e639ab65be921c3cc3dff4bf116bad1 /include/stc/cstack.h
parentc75fd8e4e49a245b58678c5d92abfa0823ab3eed (diff)
downloadSTC-modified-9723c34b18448cd28b10ac70d10f8bc156e6874f.tar.gz
STC-modified-9723c34b18448cd28b10ac70d10f8bc156e6874f.zip
Internal.
Diffstat (limited to 'include/stc/cstack.h')
-rw-r--r--include/stc/cstack.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/stc/cstack.h b/include/stc/cstack.h
index 079d9bd0..caa934df 100644
--- a/include/stc/cstack.h
+++ b/include/stc/cstack.h
@@ -83,7 +83,8 @@ STC_INLINE _cx_value* _cx_memb(_top)(const _cx_self* self)
{ return &self->data[self->size - 1]; }
STC_INLINE _cx_value* _cx_memb(_push)(_cx_self* self, _cx_value val) {
- if (self->size == self->capacity) _cx_memb(_reserve)(self, self->size*3/2 + 4);
+ if (self->size == self->capacity)
+ _cx_memb(_reserve)(self, self->size*3/2 + 4);
_cx_value* vp = self->data + self->size++;
*vp = val; return vp;
}