From 1c6cf4b55780fae4d1a3a59a98bcd56cc4c11ebe Mon Sep 17 00:00:00 2001 From: Marc Glisse Date: Sat, 15 Oct 2016 19:48:25 +0200 Subject: [PATCH] Replace ?: with 'if' for expression templates. --- Polynomial/include/CGAL/Polynomial/prs_resultant.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Polynomial/include/CGAL/Polynomial/prs_resultant.h b/Polynomial/include/CGAL/Polynomial/prs_resultant.h index a3fae56cf69..1310832c1e8 100644 --- a/Polynomial/include/CGAL/Polynomial/prs_resultant.h +++ b/Polynomial/include/CGAL/Polynomial/prs_resultant.h @@ -134,7 +134,10 @@ NT prs_resultant_ufd(Polynomial A, Polynomial B) { delta = A.degree(); g = B.lcoeff(); internal::hgdelta_update(h, g, delta); - h = signflip ? -(t*h) : t*h; + if (signflip) + h = -(t*h); + else + h = t*h; typename Algebraic_structure_traits::Simplify simplify; simplify(h); return h;