Skip to content

Commit

Permalink
another bitmap inversion fix
Browse files Browse the repository at this point in the history
  • Loading branch information
glookka committed Nov 22, 2024
1 parent 89120fa commit edadc69
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 @@ -72,7 +72,7 @@ class BitVec_T
if ( ( iMaxId<<SHIFT ) != iMaxBit )
{
int iFirstBit = (iMaxId-1) << SHIFT;
m_dData[iMaxId-1] &= (T(1) << ( iMaxBit-iFirstBit )) - 1;
m_dData[iMaxId-1] &= (T(1) << ( iMaxBit-iFirstBit+1 )) - 1;
}
}

Expand Down

0 comments on commit edadc69

Please sign in to comment.