diff --git a/packages/lazy-imt/contracts/InternalLazyIMT.sol b/packages/lazy-imt/contracts/InternalLazyIMT.sol index 6148cec..ffc0b53 100644 --- a/packages/lazy-imt/contracts/InternalLazyIMT.sol +++ b/packages/lazy-imt/contracts/InternalLazyIMT.sol @@ -224,9 +224,9 @@ library InternalLazyIMT { // targetDepth = log2_floor(numberOfLeaves) uint8 targetDepth = 1; { - uint40 exp = 2; - while (exp < numberOfLeaves) { - exp <<= 1; + uint40 val = 2; + while (val < numberOfLeaves) { + val <<= 1; targetDepth++; } }