From f4d12b8d23d930c4790877debe0a14d0de2298b2 Mon Sep 17 00:00:00 2001 From: Oliver Sander <oliver.sander@tu-dresden.de> Date: Fri, 25 Feb 2022 10:33:48 +0100 Subject: [PATCH] Avoid a signed/unsigned warning --- dune/gfe/polardecomposition.hh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dune/gfe/polardecomposition.hh b/dune/gfe/polardecomposition.hh index 6f3ecb86..9f7098ae 100644 --- a/dune/gfe/polardecomposition.hh +++ b/dune/gfe/polardecomposition.hh @@ -25,7 +25,7 @@ namespace Dune::GFE { template <class field_type> FieldMatrix<field_type,3,3> operator() (const FieldMatrix<field_type,3,3>& matrix, double tol = 0.001) const { - int maxIterations = 100; + size_t maxIterations = 100; // Use Higham's method auto polar = matrix; for (size_t i=0; i<maxIterations; i++) @@ -323,4 +323,4 @@ namespace Dune::GFE { }; } -#endif \ No newline at end of file +#endif -- GitLab