Skip to content

Commit

Permalink
fixed bitmap inversion
Browse files Browse the repository at this point in the history
  • Loading branch information
glookka committed Sep 30, 2024
1 parent f9ef8b9 commit bd59d08
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion util/bitvec.h
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ class BitVec_T
iMaxBit = m_iSize;

int iMinId = iMinBit>>SHIFT;
int iMaxId = (iMaxBit+SIZEBITS-1)>>SHIFT;
int iMaxId = (iMaxBit+SIZEBITS)>>SHIFT;
for ( int i = iMinId; i<iMaxId; i++ )
m_dData[i] = ~m_dData[i];

Expand Down

0 comments on commit bd59d08

Please sign in to comment.