Avoid stupid "enumeral mismatch in conditional expression" warnings in GCC

This commit is contained in:
Christoph Hertzberg 2014-03-11 12:18:32 +01:00
parent 1b3d7fc04c
commit bbc0ada12a

View File

@ -530,9 +530,9 @@ public:
inline Transform& operator=(const UniformScaling<Scalar>& t);
inline Transform& operator*=(const UniformScaling<Scalar>& s) { return scale(s.factor()); }
inline Transform<Scalar,Dim,(int(Mode)==int(Isometry)?Affine:Mode)> operator*(const UniformScaling<Scalar>& s) const
inline TransformTimeDiagonalReturnType operator*(const UniformScaling<Scalar>& s) const
{
Transform<Scalar,Dim,(int(Mode)==int(Isometry)?Affine:Mode),Options> res = *this;
TransformTimeDiagonalReturnType res = *this;
res.scale(s.factor());
return res;
}