From: Simon Sticko Date: Sat, 15 May 2021 08:47:21 +0000 (+0200) Subject: Fix two signed/unsigned comparisons. X-Git-Tag: v9.3.0-rc1~72^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F12209%2Fhead;p=dealii.git Fix two signed/unsigned comparisons. --- 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,