From 165fd63364e9845c9c96f33d4a5ad5e774438341 Mon Sep 17 00:00:00 2001 From: Andreas Fabri Date: Wed, 19 Oct 2016 14:38:49 +0200 Subject: [PATCH] Use CGAL_assertion_code --- .../include/CGAL/Algebraic_kernel_d/Algebraic_real_d_1.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Algebraic_kernel_d/include/CGAL/Algebraic_kernel_d/Algebraic_real_d_1.h b/Algebraic_kernel_d/include/CGAL/Algebraic_kernel_d/Algebraic_real_d_1.h index ebdcf756f33..1ffe9e03a8b 100644 --- a/Algebraic_kernel_d/include/CGAL/Algebraic_kernel_d/Algebraic_real_d_1.h +++ b/Algebraic_kernel_d/include/CGAL/Algebraic_kernel_d/Algebraic_real_d_1.h @@ -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); }