Skip to content

Commit

Permalink
Make TickBitmap.position internal (Uniswap#460)
Browse files Browse the repository at this point in the history
Co-authored-by: Alice <[email protected]>
  • Loading branch information
zemse and hensha256 authored Feb 12, 2024
1 parent b8a333b commit 0147af8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libraries/TickBitmap.sol
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ library TickBitmap {
/// @param tick The tick for which to compute the position
/// @return wordPos The key in the mapping containing the word in which the bit is stored
/// @return bitPos The bit position in the word where the flag is stored
function position(int24 tick) private pure returns (int16 wordPos, uint8 bitPos) {
function position(int24 tick) internal pure returns (int16 wordPos, uint8 bitPos) {
unchecked {
wordPos = int16(tick >> 8);
bitPos = uint8(int8(tick % 256));
Expand Down

0 comments on commit 0147af8

Please sign in to comment.