summaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/stc/cvec.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/stc/cvec.h b/include/stc/cvec.h
index 11de465c..27aae8c3 100644
--- a/include/stc/cvec.h
+++ b/include/stc/cvec.h
@@ -237,7 +237,8 @@ cx_memb(_init)(void) {
STC_DEF void
cx_memb(_clear)(Self* self) {
- struct cvec_rep* rep = cvec_rep_(self); if (rep->cap) {
+ struct cvec_rep* rep = cvec_rep_(self);
+ if (rep->cap) {
for (cx_value_t *p = self->data, *q = p + rep->size; p != q; ++p)
i_valdel(p);
rep->size = 0;