Skip to content

Commit

Permalink
Bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
robomics committed Dec 6, 2023
1 parent ad8766b commit 3c4da66
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/libhictk/cooler/include/hictk/cooler/impl/index_impl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,8 @@ inline void Index::set(const Chromosome &chrom, OffsetVect offsets) {
}

inline void Index::set_offset_by_bin(const Bin &bin, std::uint64_t offset) {
set_offset_by_row_idx(bin.chrom().id(), bin.rel_id(), offset);
set_offset_by_row_idx(bin.chrom().id(), conditional_static_cast<std::size_t>(bin.rel_id()),
offset);
}

inline void Index::set_offset_by_bin_id(std::uint64_t bin_id, std::uint64_t offset) {
Expand Down

0 comments on commit 3c4da66

Please sign in to comment.