Fix compiler warnings in tests.

This commit is contained in:
Rasmus Munk Larsen
2023-02-14 02:29:03 +00:00
parent 4a03409569
commit 07aaa62e6f
4 changed files with 44 additions and 41 deletions

View File

@@ -164,7 +164,7 @@ template<typename SparseMatrixType> void sparse_basic(const SparseMatrixType& re
// test sort
if (inner > 1) {
bool StorageOrdersMatch = DenseMatrix::IsRowMajor == SparseMatrixType::IsRowMajor;
bool StorageOrdersMatch = int(DenseMatrix::IsRowMajor) == int(SparseMatrixType::IsRowMajor);
DenseMatrix m1(rows, cols);
m1.setZero();
SparseMatrixType m2(rows, cols);