fix implicit scalar conversion

This commit is contained in:
Gael Guennebaud 2012-06-28 13:12:49 +02:00
parent a2ace4b79a
commit 139c91bf30

View File

@ -604,7 +604,7 @@ public:
if(int(Mode)!=int(AffineCompact))
{
matrix().template block<1,Dim>(Dim,0).setZero();
matrix().coeffRef(Dim,Dim) = 1;
matrix().coeffRef(Dim,Dim) = Scalar(1);
}
}