Skip to content

Commit 850982c

Browse files
committed
Fix for upstream changes
1 parent 9af890e commit 850982c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/types/range.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -384,10 +384,10 @@ impl<T: Ord+Normalizable+Clone> Range<T> {
384384
return Range::empty();
385385
}
386386

387-
let OptBound(lower) = cmp::max(OptBound(self.lower()),
388-
OptBound(other.lower()));
389-
let OptBound(upper) = cmp::min(OptBound(self.upper()),
390-
OptBound(other.upper()));
387+
let (_, OptBound(lower)) = order(OptBound(self.lower()),
388+
OptBound(other.lower()));
389+
let (OptBound(upper), _) = order(OptBound(self.upper()),
390+
OptBound(other.upper()));
391391

392392
Range::new(lower.map(|v| v.clone()), upper.map(|v| v.clone()))
393393
}

0 commit comments

Comments
 (0)