Skip to content

Commit

Permalink
GP-0: Fix inverted range
Browse files Browse the repository at this point in the history
  • Loading branch information
nsadeveloper789 committed Mar 12, 2024
1 parent 44eedbe commit eaf8028
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,10 @@ protected void ensureKnown(Address min, Address max) {
if (minAddress == null) {
return;
}
if (minAddress.compareTo(max) > 0 ||
maxAddress.compareTo(min) < 0) {
return;
}
min = cmax(min, minAddress);
max = cmin(max, maxAddress);
if (known.contains(min, max)) {
Expand Down

0 comments on commit eaf8028

Please sign in to comment.