Skip to content

Commit

Permalink
minor: renamed a variable for consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
jermp committed Feb 24, 2022
1 parent addf15e commit 57a5080
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions include/builder/build.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -416,18 +416,18 @@ void build_skew_index(skew_index& m_skew_index, parse_data& data, buckets const&
}

assert(lists[i].size() > lower and lists[i].size() <= upper);
uint64_t list_id = 0;
uint64_t string_id = 0;
for (auto [offset, num_kmers_in_string] : lists[i]) {
bit_vector_iterator bv_it(m_buckets.strings, 2 * offset);
for (uint64_t i = 0; i != num_kmers_in_string; ++i) {
uint64_t read_kmer = bv_it.read(2 * build_config.k);
uint64_t pos = mphf->operator()(read_kmer);
assert(pos < cvb_positions.size());
assert(list_id < (1ULL << cvb_positions.width()));
cvb_positions.set(pos, list_id);
assert(string_id < (1ULL << cvb_positions.width()));
cvb_positions.set(pos, string_id);
bv_it.eat(2);
}
++list_id;
++string_id;
}
}
assert(partition_id == num_partitions);
Expand Down

0 comments on commit 57a5080

Please sign in to comment.