From 7814e0736e45dbc9b401dd5dd65c7a2b4e5e2a02 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C5=93ur?= Date: Mon, 12 Dec 2022 10:23:59 +0800 Subject: [PATCH] Fixed tr_bitfield::operator|= range (#4351) --- libtransmission/bitfield.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]; }