From: Ian Jackson Date: Mon, 22 Mar 2021 18:56:11 +0000 (+0000) Subject: Area: Fix overlaps X-Git-Tag: otter-0.5.0~500 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=ac6a71f6e4ccf9af2cc3785f04d74b86b4510edd;p=otter.git Area: Fix overlaps This never worked properly. Signed-off-by: Ian Jackson --- diff --git a/src/spec.rs b/src/spec.rs index 6871ddd9..d1589708 100644 --- a/src/spec.rs +++ b/src/spec.rs @@ -381,7 +381,7 @@ pub mod implementation { } pub fn overlaps(&self, other: &AreaC) -> bool where T: Ord { - ! (0..2).any(|i| !( + ! (0..2).any(|i| ( other.0[1].0[i] < self .0[0].0[i] || self .0[1].0[i] < other.0[0].0[i] ))