Skip to content

Commit e9df0c9

Browse files
committed
fix(snippet): use reserve
1 parent 7b7cbd5 commit e9df0c9

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

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)