Fix implicit conversion from 0.0 to scalar

This commit is contained in:
Gael Guennebaud
2018-02-16 22:26:01 +04:00
parent 937ad18221
commit adb134d47e
2 changed files with 4 additions and 4 deletions

View File

@@ -31,7 +31,7 @@ void ordering_helper_at_plus_a(const MatrixType& A, MatrixType& symmat)
for (int i = 0; i < C.rows(); i++)
{
for (typename MatrixType::InnerIterator it(C, i); it; ++it)
it.valueRef() = 0.0;
it.valueRef() = typename MatrixType::Scalar(0);
}
symmat = C + A;
}