Skip to content

Commit

Permalink
Fix const array init for clang
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillaumeHolley authored Oct 10, 2023
1 parent 77db80f commit b1a2fa6
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/BlockedBloomFilter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -606,7 +606,7 @@ DualBlockedBloomFilter::DualBlockedBloomFilter(const size_t nb_elem, const size_
}

DualBlockedBloomFilter::DualBlockedBloomFilter(const DualBlockedBloomFilter& o) : table_(nullptr), blocks_(o.blocks_), nb_bits_per_elem(o.nb_bits_per_elem),
k_(o.k_), M_u64(o.M_u64), seed1(o.seed1), seed2(o.seed2), ush(o.ush) {
k_(o.k_), M_u64(o.M_u64), seed1(o.seed1), seed2(o.seed2), ush{o.ush[0], o.ush[1]} {

if (blocks_ != 0) {

Expand All @@ -622,10 +622,7 @@ DualBlockedBloomFilter::DualBlockedBloomFilter(const DualBlockedBloomFilter& o)
}

DualBlockedBloomFilter::DualBlockedBloomFilter(DualBlockedBloomFilter&& o) : table_(o.table_), blocks_(o.blocks_), nb_bits_per_elem(o.nb_bits_per_elem),
k_(o.k_), M_u64(o.M_u64), seed1(o.seed1), seed2(o.seed2) {

ush[0] = move(o.ush[0]);
ush[1] = move(o.ush[1]);
k_(o.k_), M_u64(o.M_u64), seed1(o.seed1), seed2(o.seed2), ush{move(o.ush[0]), move(o.ush[1])} {

o.table_ = nullptr;

Expand Down

0 comments on commit b1a2fa6

Please sign in to comment.