Skip to content

Commit

Permalink
fixed bitmap inversion
Browse files Browse the repository at this point in the history
  • Loading branch information
glookka committed Nov 22, 2024
1 parent 30ad2d6 commit 89120fa
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion util/bitvec.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,14 @@ class BitVec_T

void Invert ( int iMinBit=-1, int iMaxBit=-1 )
{
if ( !m_iSize )
return;

if ( iMinBit<0 )
iMinBit = 0;

if ( iMaxBit<0 )
iMaxBit = m_iSize;
iMaxBit = m_iSize-1;

int iMinId = iMinBit>>SHIFT;
int iMaxId = (iMaxBit+SIZEBITS)>>SHIFT;
Expand Down

0 comments on commit 89120fa

Please sign in to comment.