Skip to content

Commit

Permalink
Simplify ff prepared rounding check.
Browse files Browse the repository at this point in the history
Signed-off-by: Finn Carroll <[email protected]>
  • Loading branch information
finnegancarroll committed Jan 27, 2025
1 parent 45642cd commit c0f5071
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -202,8 +202,7 @@ protected Rounding getRounding(final long low, final long high) {
}

// Ensure preparedRounding never shrinks
roundingIdx = Math.max(prevRoundingIdx, roundingIdx);
if (roundingIdx != prevRoundingIdx) {
if (roundingIdx > prevRoundingIdx) {
preparedRounding = prepareRounding(roundingIdx);
}

Expand Down

0 comments on commit c0f5071

Please sign in to comment.