* fixed truncation warnings caused by MatrixBase::CoeffReturnType under MSVC

This commit is contained in:
Kenneth Frank Riddile 2009-04-03 20:19:07 +00:00
parent ff3a3209ca
commit 9a8096dd1d

View File

@ -201,7 +201,7 @@ template<typename Derived> class MatrixBase
/** \internal the return type of coeff()
*/
typedef typename ei_meta_if<int(Flags)&DirectAccessBit, const Scalar&, Scalar>::ret CoeffReturnType;
typedef typename ei_meta_if<bool(int(Flags)&DirectAccessBit), const Scalar&, Scalar>::ret CoeffReturnType;
/** \internal Represents a matrix with all coefficients equal to one another*/
typedef CwiseNullaryOp<ei_scalar_constant_op<Scalar>,Derived> ConstantReturnType;