From: Daniel Arndt <arndtd@ornl.gov>
Date: Fri, 14 May 2021 19:44:42 +0000 (-0400)
Subject: Fix warning in CoordinateRestriction
X-Git-Tag: v9.3.0-rc1~73^2
X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F12205%2Fhead;p=dealii.git

Fix warning in CoordinateRestriction
---

diff --git a/source/base/function_restriction.cc b/source/base/function_restriction.cc
index a21e250983..e927f22984 100644
--- a/source/base/function_restriction.cc
+++ b/source/base/function_restriction.cc
@@ -29,7 +29,7 @@ namespace internal
 
     Point<dim + 1> output;
     output(component_in_dim_plus_1) = coordinate_value;
-    for (unsigned int d = 0; d < dim; ++d)
+    for (int d = 0; d < dim; ++d)
       {
         const unsigned int component_to_write_to =
           dealii::internal::coordinate_to_one_dim_higher<dim>(
@@ -91,7 +91,7 @@ namespace Functions
     // the derivatives with respect to this direction and copy the other
     // values.
     Tensor<1, dim> grad;
-    for (unsigned int d = 0; d < dim; ++d)
+    for (int d = 0; d < dim; ++d)
       {
         const unsigned int index_to_write_from =
           internal::coordinate_to_one_dim_higher<dim>(restricted_direction, d);