Skip to content

Commit

Permalink
Fixed #184 ?
Browse files Browse the repository at this point in the history
  • Loading branch information
genaray committed Nov 27, 2023
1 parent 3480086 commit af4c616
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Arch/Core/Utils/BitSet.cs
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ public void SetBit(int index)

// Track highest set bit
_highestBit = Math.Max(_highestBit, index);
_max = (_highestBit/sizeof(uint)/_padding)+1;
_max = (_highestBit/(BitSize+1))+1;
_bits[b] |= 1u << (index & BitSize);
}

Expand Down Expand Up @@ -157,7 +157,7 @@ public void SetAll()
}

_highestBit = (_bits.Length * (BitSize + 1)) - 1;
_max = (_highestBit/sizeof(uint)/_padding)+1;
_max = (_highestBit/(BitSize+1))+1;
}

/// <summary>
Expand Down

0 comments on commit af4c616

Please sign in to comment.