mirror of
https://github.com/transmission/transmission.git
synced 2025-12-24 12:28:52 +00:00
fix: remove invalid assertion from bitfield code (#4346)
This commit is contained in:
@@ -459,8 +459,6 @@ void tr_bitfield::setSpan(size_t begin, size_t end, bool value)
|
|||||||
|
|
||||||
tr_bitfield& tr_bitfield::operator|=(tr_bitfield const& that) noexcept
|
tr_bitfield& tr_bitfield::operator|=(tr_bitfield const& that) noexcept
|
||||||
{
|
{
|
||||||
TR_ASSERT(size() == std::size(that));
|
|
||||||
|
|
||||||
if (hasAll() || that.hasNone())
|
if (hasAll() || that.hasNone())
|
||||||
{
|
{
|
||||||
return *this;
|
return *this;
|
||||||
@@ -485,8 +483,6 @@ tr_bitfield& tr_bitfield::operator|=(tr_bitfield const& that) noexcept
|
|||||||
|
|
||||||
tr_bitfield& tr_bitfield::operator&=(tr_bitfield const& that) noexcept
|
tr_bitfield& tr_bitfield::operator&=(tr_bitfield const& that) noexcept
|
||||||
{
|
{
|
||||||
TR_ASSERT(size() == std::size(that));
|
|
||||||
|
|
||||||
if (hasNone() || that.hasAll())
|
if (hasNone() || that.hasAll())
|
||||||
{
|
{
|
||||||
return *this;
|
return *this;
|
||||||
|
|||||||
Reference in New Issue
Block a user