aboutsummaryrefslogtreecommitdiff
path: root/test/test-vec.cpp
diff options
context:
space:
mode:
authorcomex2015-08-07 17:17:01 -0400
committercomex2015-08-07 17:17:01 -0400
commit76f0f9a281bb0b01ad3cbbc96d998af58b7dace3 (patch)
treef2ff9ec8405427342be6e29d62be662e77e5e620 /test/test-vec.cpp
parentfix vec.h bug (diff)
downloadsubstitute-76f0f9a281bb0b01ad3cbbc96d998af58b7dace3.tar.gz
add VEC_STORAGE_INIT_STATIC to match the HTAB one
Diffstat (limited to '')
-rw-r--r--test/test-vec.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/test-vec.cpp b/test/test-vec.cpp
index 9bb3daa..b26ec53 100644
--- a/test/test-vec.cpp
+++ b/test/test-vec.cpp
@@ -4,7 +4,7 @@ DECL_VEC(const char *, ccp);
DECL_VEC(int, int);
int main() {
- VEC_STORAGE(ccp) stor;
+ VEC_STORAGE(ccp) stor = VEC_STORAGE_INIT_STATIC(&stor, cpp);
VEC_STORAGE_INIT(&stor, ccp);
struct vec_ccp *vec = &stor.v;
for (int i = 0; i < 20; i++) {