Skip to content

Commit 30a949f

Browse files
authored
Merge pull request seqan#308 from eseiler/fix/snippet_reserve
fix(snippet): use reserve
2 parents 7b7cbd5 + e9df0c9 commit 30a949f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/snippet/ibf/counting_vector.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ int main()
2424
// With AVX512:
2525
// 512 (AVX) / 16 (value type of counting_vector) = 32 per iteration
2626
// Next multiple of 32 for 12: 32
27-
seqan::hibf::counting_vector<uint16_t> counts(32, 0);
27+
seqan::hibf::counting_vector<uint16_t> counts(12, 0);
28+
counts.reserve(32);
2829
#endif
2930

3031
auto agent = ibf.containment_agent();

0 commit comments

Comments
 (0)