From bcda054ef3cb5ad8afb3c70df4993f93f31c03ec Mon Sep 17 00:00:00 2001
From: Stephane Del Pino <stephane.delpino44@gmail.com>
Date: Fri, 2 Aug 2019 17:23:46 +0200
Subject: [PATCH] Fix constructor argument.

It inferred wrong template deduction for index type
For instance
``
SparseMatrixDescriptor S(5);
``
implied `SparseMatrixDescriptor::IndexType` to be `int`
---
 src/algebra/SparseMatrixDescriptor.hpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/algebra/SparseMatrixDescriptor.hpp b/src/algebra/SparseMatrixDescriptor.hpp
index 37b82d0b1..badfb9630 100644
--- a/src/algebra/SparseMatrixDescriptor.hpp
+++ b/src/algebra/SparseMatrixDescriptor.hpp
@@ -137,7 +137,7 @@ class SparseMatrixDescriptor
     return values;
   }
 
-  SparseMatrixDescriptor(IndexType nb_row) : m_row_array{nb_row} {}
+  SparseMatrixDescriptor(size_t nb_row) : m_row_array{nb_row} {}
 
   ~SparseMatrixDescriptor() = default;
 };
-- 
GitLab