Skip to content

Commit

Permalink
Fix greaterThan and lessThan operators platform differences (software…
Browse files Browse the repository at this point in the history
  • Loading branch information
Jakub Adamczyk authored Apr 2, 2020
1 parent 3499031 commit d9cc2ec
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,9 @@ public double evaluate(Node[] input) {
private static final Operator LESS_THAN = new CompOperator() {
@Override
public boolean eval(Double x, Double y) {
if (x == null || y == null) {
return false;
}
return x < y;
}
};
Expand All @@ -198,6 +201,9 @@ public boolean eval(Double x, Double y) {
private static final Operator GREATER_THAN = new CompOperator() {
@Override
public boolean eval(Double x, Double y) {
if (x == null || y == null) {
return false;
}
return x > y;
}
};
Expand Down

0 comments on commit d9cc2ec

Please sign in to comment.