diff --git a/libtransmission/bitfield.cc b/libtransmission/bitfield.cc index 6e29004fb..eaba9aa32 100644 --- a/libtransmission/bitfield.cc +++ b/libtransmission/bitfield.cc @@ -472,7 +472,7 @@ tr_bitfield& tr_bitfield::operator|=(tr_bitfield const& that) noexcept flags_.resize(std::max(std::size(flags_), std::size(that.flags_))); - for (size_t i = 0, n = std::size(flags_); i < n; ++i) + for (size_t i = 0, n = std::size(that.flags_); i < n; ++i) { flags_[i] |= that.flags_[i]; }