The fix was incorrect for Polynomial

A warning told us there was a problem:

    .../include/CGAL/Polynomial/Polynomial_type.h:560:48: warning: unused variable 'sign' [-Wunused-variable]
           typename Real_embeddable_traits<NT>::Sgn sign;
This commit is contained in:
Laurent Rineau 2017-07-05 10:20:19 +02:00
parent a42b9f1187
commit 0889f34aa7
1 changed files with 3 additions and 3 deletions

View File

@ -566,9 +566,9 @@ public:
int d1 = degree(); int d1 = degree();
int d2 = p2.degree(); int d2 = p2.degree();
if (d1 > d2) { if (d1 > d2) {
return CGAL::sign((*this)[d1]); return sign((*this)[d1]);
} else if (d1 < d2) { } else if (d1 < d2) {
return -CGAL::sign(p2[d2]); return -sign(p2[d2]);
} }
for (int i = d1; i >= 0; i--) { for (int i = d1; i >= 0; i--) {
@ -585,7 +585,7 @@ public:
CGAL_precondition(degree() >= 0); CGAL_precondition(degree() >= 0);
if (degree() > 0) { if (degree() > 0) {
return CGAL::sign(lcoeff()); return sign(lcoeff());
} else { } else {
return compare((*this)[0], p2); return compare((*this)[0], p2);
} }