Merge pull request #1596 from afabri/Algebraic_kernel_d-fix_warning-GF

Use CGAL_assertion_code
This commit is contained in:
Laurent Rineau 2016-10-24 11:47:08 +02:00
commit 3686301c57
1 changed files with 4 additions and 3 deletions

View File

@ -321,9 +321,10 @@ public:
void refine_to(const Rational& lo, const Rational& hi) const {
// test whether lo < x < hi
// and refines isolating interval until in ]lo,hi[
CGAL::Comparison_result s;
s = compare_distinct(lo); CGAL_assertion(CGAL::LARGER == s);
s = compare_distinct(hi) ; CGAL_assertion(CGAL::SMALLER == s);
CGAL_assertion_code(CGAL::Comparison_result s =) compare_distinct(lo);
CGAL_assertion(CGAL::LARGER == s);
CGAL_assertion_code(s =) compare_distinct(hi);
CGAL_assertion(CGAL::SMALLER == s);
}