Skip to content

Commit

Permalink
Merge pull request #237 from SimonRohou/hotfix-179
Browse files Browse the repository at this point in the history
Fix issue 179
  • Loading branch information
Gilles Chabert authored Nov 16, 2016
2 parents fcd541d + de50a1a commit d02f126
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/arithmetic/ibex_Interval_filib.h_
Original file line number Diff line number Diff line change
Expand Up @@ -404,9 +404,7 @@ inline Interval sqr(const Interval& x) {
}

inline Interval sqrt(const Interval& x) {
Interval res(filib::sqrt(x.itv));
if (res.lb()<0) res &= Interval::POS_REALS;
return res;
return filib::sqrt(x.itv) & Interval::POS_REALS;
}

inline Interval pow(const Interval& x, int n) {
Expand Down

0 comments on commit d02f126

Please sign in to comment.