Skip to content

Commit 7512977

Browse files
authored
Fix unexpected condition (#220)
1 parent 33d4895 commit 7512977

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/StdUtils.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ abstract contract StdUtils {
2727
uint256 rem = diff % size;
2828
if (rem == 0) return max;
2929
result = min + rem - 1;
30-
} else if (x < max) {
30+
} else if (x < min) {
3131
uint256 diff = min - x;
3232
uint256 rem = diff % size;
3333
if (rem == 0) return min;

0 commit comments

Comments
 (0)