1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-27 18:18:10 +00:00

Fixed tr_bitfield::operator|= range (#4351)

This commit is contained in:
Cœur 2022-12-12 10:23:59 +08:00 committed by GitHub
parent f58c238d4a
commit 7814e0736e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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];
}