mirror of https://github.com/CGAL/cgal
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:
parent
a42b9f1187
commit
0889f34aa7
|
|
@ -566,9 +566,9 @@ public:
|
|||
int d1 = degree();
|
||||
int d2 = p2.degree();
|
||||
if (d1 > d2) {
|
||||
return CGAL::sign((*this)[d1]);
|
||||
return sign((*this)[d1]);
|
||||
} else if (d1 < d2) {
|
||||
return -CGAL::sign(p2[d2]);
|
||||
return -sign(p2[d2]);
|
||||
}
|
||||
|
||||
for (int i = d1; i >= 0; i--) {
|
||||
|
|
@ -585,7 +585,7 @@ public:
|
|||
CGAL_precondition(degree() >= 0);
|
||||
|
||||
if (degree() > 0) {
|
||||
return CGAL::sign(lcoeff());
|
||||
return sign(lcoeff());
|
||||
} else {
|
||||
return compare((*this)[0], p2);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue