Core/Bitset: Fix Bitset::FindNext
Former-commit-id: 20d18be6e8039fc386ef7c402878b3d29577b46d
This commit is contained in:
parent
109af2a581
commit
179f30861d
|
|
@ -104,7 +104,8 @@ unsigned int NzBitset<Block, Allocator>::FindNext(unsigned int bit) const
|
||||||
{
|
{
|
||||||
NazaraAssert(bit < m_bitCount, "Bit index out of range");
|
NazaraAssert(bit < m_bitCount, "Bit index out of range");
|
||||||
|
|
||||||
bit++;
|
if (++bit >= m_bitCount)
|
||||||
|
return npos;
|
||||||
|
|
||||||
// Le bloc du bit, l'indice du bit
|
// Le bloc du bit, l'indice du bit
|
||||||
unsigned int blockIndex = GetBlockIndex(bit);
|
unsigned int blockIndex = GetBlockIndex(bit);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue