This commit is contained in:
Branimir Karadžić
2026-10-19 22:31:21 -07:00
committed by GitHub
parent 5c218692de
commit 234f2fba71
2 changed files with 4 additions and 4 deletions

View File

@@ -31,14 +31,14 @@ namespace bx
bool isDone() const;
/// Returns index of the current set bit.
uint32_t getIndex() const;
uint8_t getIndex() const;
/// Returns remaining mask, shifted so that the current set bit is bit 0.
MaskT getMask() const;
private:
MaskT m_mask;
uint32_t m_idx;
MaskT m_mask;
uint8_t m_idx;
};
/// Range-for iterator over set bits of a bit array, in index order. Dereferences to the bit

View File

@@ -91,7 +91,7 @@ namespace bx
}
template<typename MaskT>
inline uint32_t BitMaskToIndexIteratorT<MaskT>::getIndex() const
inline uint8_t BitMaskToIndexIteratorT<MaskT>::getIndex() const
{
return m_idx;
}