diff --git a/src/libhictk/cooler/include/hictk/cooler/impl/index_impl.hpp b/src/libhictk/cooler/include/hictk/cooler/impl/index_impl.hpp index 66dff5d7..bbbecc25 100644 --- a/src/libhictk/cooler/include/hictk/cooler/impl/index_impl.hpp +++ b/src/libhictk/cooler/include/hictk/cooler/impl/index_impl.hpp @@ -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(bin.rel_id()), + offset); } inline void Index::set_offset_by_bin_id(std::uint64_t bin_id, std::uint64_t offset) {