Skip to content

Commit

Permalink
FIX interval_algebra::Ne bug
Browse files Browse the repository at this point in the history
  • Loading branch information
orlarey committed Mar 5, 2024
1 parent 6c11fdc commit 831eeb7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions interval/intervalNe.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ interval interval_algebra::Ne(const interval& x, const interval& y)
return {};
}
if ((x.hi() < y.lo()) || x.lo() > y.hi()) {
return interval{1,1,0};
return interval{1, 1, 0};
}
if ((x.hi() == y.lo()) || x.lo() == y.hi()) {
return interval{0,0,0};
if ((x.hi() == y.lo()) && x.lo() == y.hi()) {
return interval{0, 0, 0};
}
return {0, 1, 0};
}
Expand Down

0 comments on commit 831eeb7

Please sign in to comment.