From d4e3368765faf03fd3a70e4b6c0c389ddb9ec3d1 Mon Sep 17 00:00:00 2001 From: Simon Sticko Date: Sat, 15 May 2021 10:47:21 +0200 Subject: [PATCH] Fix two signed/unsigned comparisons. --- source/base/function_restriction.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/base/function_restriction.cc b/source/base/function_restriction.cc index e927f22984..bfdfff8154 100644 --- a/source/base/function_restriction.cc +++ b/source/base/function_restriction.cc @@ -119,11 +119,11 @@ namespace Functions // the derivatives with respect to this direction and copy the other // values. SymmetricTensor<2, dim> hess; - for (unsigned int i = 0; i < dim; ++i) + for (int i = 0; i < dim; ++i) { const unsigned int i_to_write_from = internal::coordinate_to_one_dim_higher(restricted_direction, i); - for (unsigned int j = 0; j < dim; ++j) + for (int j = 0; j < dim; ++j) { const unsigned int j_to_write_from = internal::coordinate_to_one_dim_higher(restricted_direction, -- 2.39.5