Skip to content
This repository was archived by the owner on Dec 17, 2025. It is now read-only.

Commit 45b0662

Browse files
committed
perf: not instead of xor max
1 parent f73efec commit 45b0662

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/LogarithmicBuckets.sol

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,7 @@ library LogarithmicBuckets {
8686
address _id,
8787
uint256 _bucket
8888
) private {
89-
if (_buckets.buckets[_bucket].remove(_id))
90-
_buckets.bucketsMask &= _bucket ^ type(uint256).max;
89+
if (_buckets.buckets[_bucket].remove(_id)) _buckets.bucketsMask &= ~_bucket;
9190
}
9291

9392
/// @notice Inserts an account in the `_buckets`.

0 commit comments

Comments
 (0)