Skip to content

Commit

Permalink
Fixed a bug where queries for double values would fail.
Browse files Browse the repository at this point in the history
  • Loading branch information
SG-O committed Aug 18, 2023
1 parent 99f4374 commit 578b849
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ protected boolean matches(TagContainer tc) {
if (tc == null) return false;
if (longLowerBounds != null && longUpperBounds != null && tc.getLongValue() != null)
return (tc.getLongValue() >= longLowerBounds) && (tc.getLongValue() <= longUpperBounds);
if (doubleLowerBounds != null && doubleUpperBounds != null && tc.getLongValue() != null)
if (doubleLowerBounds != null && doubleUpperBounds != null && tc.getDoubleValue() != null)
return (tc.getDoubleValue() >= doubleLowerBounds) && (tc.getDoubleValue() <= doubleUpperBounds);
return false;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ protected boolean matches(TagContainer tc) {
if (tc == null) return false;
if (longValue != null && tc.getLongValue() != null)
return (tc.getLongValue() >= longValue);
if (doubleValue != null && tc.getLongValue() != null)
if (doubleValue != null && tc.getDoubleValue() != null)
return (tc.getDoubleValue() >= doubleValue);
return false;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ protected boolean matches(TagContainer tc) {
if (tc == null) return false;
if (longValue != null && tc.getLongValue() != null)
return (tc.getLongValue() <= longValue);
if (doubleValue != null && tc.getLongValue() != null)
if (doubleValue != null && tc.getDoubleValue() != null)
return (tc.getDoubleValue() <= doubleValue);
return false;
}
Expand Down

0 comments on commit 578b849

Please sign in to comment.