Use & instead of && (in assertions, using && does not make much sense).

This commit is contained in:
Sylvain Pion 2008-08-12 11:54:48 +00:00
parent 0c34dc2525
commit 869f4ceae1
2 changed files with 2 additions and 2 deletions

View File

@ -52,7 +52,7 @@ public:
SphereC3(const Point_3 &center, 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);

View File

@ -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();