mirror of https://github.com/CGAL/cgal
Use & instead of && (in assertions, using && does not make much sense).
This commit is contained in:
parent
0c34dc2525
commit
869f4ceae1
|
|
@ -52,7 +52,7 @@ public:
|
|||
SphereC3(const Point_3 ¢er, const FT &squared_radius,
|
||||
const Orientation &o = COUNTERCLOCKWISE)
|
||||
{
|
||||
CGAL_kernel_precondition( (squared_radius >= FT(0)) &&
|
||||
CGAL_kernel_precondition( (squared_radius >= FT(0)) &
|
||||
(o != COLLINEAR) );
|
||||
|
||||
base = Rep(center, squared_radius, o);
|
||||
|
|
|
|||
|
|
@ -187,7 +187,7 @@ inline
|
|||
const typename VectorC3<R>::FT &
|
||||
VectorC3<R>::cartesian(int i) const
|
||||
{
|
||||
CGAL_kernel_precondition( (i>=0) && (i<3) );
|
||||
CGAL_kernel_precondition( (i>=0) & (i<3) );
|
||||
if (i==0) return x();
|
||||
if (i==1) return y();
|
||||
return z();
|
||||
|
|
|
|||
Loading…
Reference in New Issue