Merge pull request #12473 from Dentomologist/bitset64_fix_iterator_incrementation

BitSet64: Fix iterator incrementation
This commit is contained in:
Admiral H. Curtiss 2024-01-01 22:03:11 +01:00 committed by GitHub
commit 043d868841
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 33 additions and 14 deletions

View file

@ -73,7 +73,7 @@ public:
else
{
int bit = std::countr_zero(m_val);
m_val &= ~(1 << bit);
m_val &= ~(IntTy{1} << bit);
m_bit = bit;
}
return *this;