Skip to content

Commit

Permalink
Fix support for fully open range.
Browse files Browse the repository at this point in the history
  • Loading branch information
broneill committed Sep 5, 2024
1 parent ee11dec commit f809429
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main/java/org/cojen/tupl/table/expr/Range.java
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,9 @@ public String toString() {
*/
public static Range make(Number start, Number end) {
if (start == null || isOpenStart(start)) {
if (isInt(end)) {
if (end == null) {
return open();
} else if (isInt(end)) {
return makeOpenStart(end.intValue());
} else if (isLong(end)) {
return makeOpenStart(clamp_to_long(end));
Expand Down

0 comments on commit f809429

Please sign in to comment.