Skip to content

Commit

Permalink
fix the OperatorType
Browse files Browse the repository at this point in the history
  • Loading branch information
RemHero committed Jan 19, 2023
1 parent bd62227 commit 2adcff6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ private static class OperatorTypeCounter
}

public static boolean isBinaryOperator(OperatorType op) {
return 40 < op.value && op.value < 49;
return op.value >= 40 && op.value <= 49;
}

public static boolean isUnaryOperator(OperatorType op) {
Expand Down

0 comments on commit 2adcff6

Please sign in to comment.