Skip to content

Commit

Permalink
bitmap iterator only rewinds forward
Browse files Browse the repository at this point in the history
  • Loading branch information
glookka committed Apr 11, 2023
1 parent eac89e5 commit 102d67c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion secondary/blockreader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,10 @@ void BitmapIterator_T<BITMAP>::Add ( BlockIterator_i * pIterator )
template <typename BITMAP>
bool BitmapIterator_T<BITMAP>::HintRowID ( uint32_t tRowID )
{
m_iIndex = tRowID >> 6;
int iNewIndex = tRowID >> 6;
if ( iNewIndex > m_iIndex )
m_iIndex = iNewIndex;

return m_iIndex < m_tBitmap.GetLength();
}

Expand Down

0 comments on commit 102d67c

Please sign in to comment.